Wm4MathMCR.h File Reference
Go to the source code of this file.
Define Documentation
#define WM4_SCALED_FLOAT_TO_INT |
( |
fFloat, |
|
|
iLog, |
|
|
iInt |
|
) |
|
Value:{ \
int iShift = 150 - iLog - ((*(int*)(&fFloat) >> 23) & 0xFF); \
if ( iShift < 24 ) \
{ \
iInt = ((*(int*)(&fFloat) & 0x007FFFFF) | \
0x00800000) >> iShift; \
if ( iInt == (1 << iLog) ) \
{ \
iInt--; \
} \
} \
else \
{ \
iInt = 0; \
} \
}
Definition at line 29 of file Wm4MathMCR.h.
#define WM4_SCALED_FLOAT_TO_INT |
( |
fFloat, |
|
|
iLog, |
|
|
iInt |
|
) |
|
Value:{ \
int iShift = 150 - iLog - ((*(int*)(&fFloat) >> 23) & 0xFF); \
if ( iShift < 24 ) \
{ \
iInt = ((*(int*)(&fFloat) & 0x007FFFFF) | \
0x00800000) >> iShift; \
if ( iInt == (1 << iLog) ) \
{ \
iInt--; \
} \
} \
else \
{ \
iInt = 0; \
} \
}
Definition at line 178 of file Wm4Math.h.