Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-08-21 10:42:40 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-08-21 10:42:40 +0300
commit7e3781179e3eb37fdd1e8a65fcdfed898b8cf460 (patch)
tree3e19015b19d1e8904d231b77840f7a47ffc56df5 /source/blender/blenlib/BLI_math_bits.h
parentc727fc59abe2b7e525bdc6594bbd7ec3285936e0 (diff)
Math Lib: Add float/int conversion functions
Diffstat (limited to 'source/blender/blenlib/BLI_math_bits.h')
-rw-r--r--source/blender/blenlib/BLI_math_bits.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_math_bits.h b/source/blender/blenlib/BLI_math_bits.h
index 876c0d92e31..1ac98a682d1 100644
--- a/source/blender/blenlib/BLI_math_bits.h
+++ b/source/blender/blenlib/BLI_math_bits.h
@@ -40,6 +40,12 @@ MINLINE unsigned short highest_order_bit_s(unsigned short n);
MINLINE int count_bits_i(unsigned int n);
#endif
+MINLINE int float_as_int(float f);
+MINLINE unsigned int float_as_uint(float f);
+MINLINE float int_as_float(int i);
+MINLINE float uint_as_float(unsigned int i);
+MINLINE float xor_fl(float x, int y);
+
#if BLI_MATH_DO_INLINE
#include "intern/math_bits_inline.c"
#endif