diff options
author | Andrew Waterman <waterman@cs.berkeley.edu> | 2015-03-12 17:38:04 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@cs.berkeley.edu> | 2015-03-12 17:38:04 -0700 |
commit | 6517fe26a2a0c89c3112f4a383c601572c71d64a (patch) | |
tree | d37eea7ae6f3e15eee94afb5c9c749a4cd800577 /softfloat/f32_roundToInt.c | |
parent | a4ae7da6ef0c09c2616a0b82f7f569e4e134f75c (diff) | |
download | riscv-pk-6517fe26a2a0c89c3112f4a383c601572c71d64a.zip riscv-pk-6517fe26a2a0c89c3112f4a383c601572c71d64a.tar.gz riscv-pk-6517fe26a2a0c89c3112f4a383c601572c71d64a.tar.bz2 |
Update to new privileged spec
Diffstat (limited to 'softfloat/f32_roundToInt.c')
-rwxr-xr-x | softfloat/f32_roundToInt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/softfloat/f32_roundToInt.c b/softfloat/f32_roundToInt.c index f8f9114..9685cfe 100755 --- a/softfloat/f32_roundToInt.c +++ b/softfloat/f32_roundToInt.c @@ -28,7 +28,7 @@ float32_t f32_roundToInt( float32_t a, int_fast8_t roundingMode, bool exact ) } if ( expA <= 0x7E ) { if ( ! (uint32_t) ( uiA<<1 ) ) return a; - if ( exact ) softfloat_exceptionFlags |= softfloat_flag_inexact; + if ( exact ) softfloat_raiseFlags( softfloat_flag_inexact ); signA = signF32UI( uiA ); switch ( roundingMode ) { case softfloat_round_nearest_even: @@ -68,7 +68,7 @@ float32_t f32_roundToInt( float32_t a, int_fast8_t roundingMode, bool exact ) } uiZ &= ~ roundBitsMask; if ( exact && ( uiZ != uiA ) ) { - softfloat_exceptionFlags |= softfloat_flag_inexact; + softfloat_raiseFlags( softfloat_flag_inexact ); } uiZ: uZ.ui = uiZ; |