Wm4MathMCR.h File Reference

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

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.


Generated on Wed Nov 23 19:01:26 2011 for FreeCAD by  doxygen 1.6.1