26 #ifndef __UTILS__FAST_INT_H__INCL__
27 #define __UTILS__FAST_INT_H__INCL__
32 return (value ^ (value >> 31)) - (value >> 31);
38 return (
uint32)(value ^ (value >> 31)) - (value >> 31);
53 union {
int32 asInt[2];
double asDouble; } n;
54 n.asDouble = value + 6755399441055744.0;
72 union {
int32 asInt[2];
double asDouble; } n;
73 n.asDouble = value + 6755399441055744.0;
int32 double2int32(const double value)
Fastest Method of double2int32.
int32 int32abs(const int32 value)
int32 float2int32(const float value)
Fastest Method of float2int32.
uint32 int32abs2uint32(const int32 value)