Wm4MathMCR.h File Reference

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 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; \
    } \
}

#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; \
    } \
}


Generated on Fri Feb 13 13:58:31 2009 for meshmorph by  doxygen 1.5.1