This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Defines | |
#define | WM4_SCALED_FLOAT_TO_INT(fFloat, iLog, iInt) |
#define | WM4_SCALED_FLOAT_TO_INT(fFloat, iLog, iInt) |
#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; \ } \ }
#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; \ } \ }