Browse Source

Added a few half float constants.

bkaradzic 12 years ago
parent
commit
b3041584e3
1 changed files with 5 additions and 0 deletions
  1. 5 0
      include/bx/uint32_t.h

+ 5 - 0
include/bx/uint32_t.h

@@ -43,6 +43,11 @@
 #	endif // BX_PLATFORM_WINDOWS
 #endif // BX_COMPILER_MSVC
 
+#define BX_HALF_FLOAT_ZERO UINT16_C(0)
+#define BX_HALF_FLOAT_HALF UINT16_C(0x3800)
+#define BX_HALF_FLOAT_ONE  UINT16_C(0x3c00)
+#define BX_HALF_FLOAT_TWO  UINT16_C(0x4000)
+
 namespace bx
 {
 	inline uint32_t uint32_li(uint32_t _a)