10 /* read and categorize FPUCW */
12 switch (cw
& FPUCW_ROUNDING_CONTROL
)
14 case FPUCW_ROUNDING_CONTROL_NEAREST
: return FE_TONEAREST
;
15 case FPUCW_ROUNDING_CONTROL_DOWN
: return FE_DOWNWARD
;
16 case FPUCW_ROUNDING_CONTROL_UP
: return FE_UPWARD
;
17 case FPUCW_ROUNDING_CONTROL_TRUNC
: return FE_TOWARDZERO
;
20 /* each case has been handled, otherwise the constants are wrong */