diff options
author | Lukas Toenne <lukas.toenne@googlemail.com> | 2013-08-13 14:09:27 +0400 |
---|---|---|
committer | Lukas Toenne <lukas.toenne@googlemail.com> | 2013-08-13 14:09:27 +0400 |
commit | 4d5c64372ada6f8dbfd8d89d4bcd515eadbb32d4 (patch) | |
tree | 35774231ee0b5a18b66474bb80aaa228521f5e7a /source/blender/blenlib | |
parent | 8cda3264bd071521d1dadcfe640474100f227ed3 (diff) |
Moved NAN_FLT define to BLI_math, this may come in useful.
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/BLI_math_base.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_math_base.h b/source/blender/blenlib/BLI_math_base.h index 4b71babdba1..8e8a7f1fef6 100644 --- a/source/blender/blenlib/BLI_math_base.h +++ b/source/blender/blenlib/BLI_math_base.h @@ -80,6 +80,10 @@ #define MAXFLOAT ((float)3.40282347e+38) #endif +/* evil quiet NaN definition */ +static const int NAN_INT = 0x7FC00000; +#define NAN_FLT *((float *)(&NAN_INT)) + /* do not redefine functions from C99 or POSIX.1-2001 */ #if !(defined(_ISOC99_SOURCE) || (defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE >= 200112L)) |