From b3041584e3280c49a8c938e5caa0eb85e161a199 Mon Sep 17 00:00:00 2001 From: bkaradzic Date: Mon, 26 Aug 2013 22:35:18 -0700 Subject: [PATCH] Added a few half float constants. --- include/bx/uint32_t.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/bx/uint32_t.h b/include/bx/uint32_t.h index cf73c43..511347a 100644 --- a/include/bx/uint32_t.h +++ b/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)