6 int fesetround(int round
)
10 /* read and update FPUCW */
11 cw
= fpu_cw_get() & ~FPUCW_ROUNDING_CONTROL
;
14 case FE_TONEAREST
: cw
|= FPUCW_ROUNDING_CONTROL_NEAREST
; break;
15 case FE_DOWNWARD
: cw
|= FPUCW_ROUNDING_CONTROL_DOWN
; break;
16 case FE_UPWARD
: cw
|= FPUCW_ROUNDING_CONTROL_UP
; break;
17 case FE_TOWARDZERO
: cw
|= FPUCW_ROUNDING_CONTROL_TRUNC
; break;
24 /* set FPUCW to the updated value */