Home
last modified time | relevance | path

Searched refs:roundIncrement (Results 1 – 2 of 2) sorted by relevance

/freebsd/lib/libc/softfloat/bits64/
H A Dsoftfloat.c115 int8 roundIncrement, roundBits; in roundAndPackInt32() local
120 roundIncrement = 0x40; in roundAndPackInt32()
123 roundIncrement = 0; in roundAndPackInt32()
126 roundIncrement = 0x7F; in roundAndPackInt32()
128 if ( roundingMode == float_round_up ) roundIncrement = 0; in roundAndPackInt32()
131 if ( roundingMode == float_round_down ) roundIncrement = 0; in roundAndPackInt32()
136 absZ = ( absZ + roundIncrement )>>7; in roundAndPackInt32()
305 int8 roundIncrement, roundBits; in roundAndPackFloat32() local
310 roundIncrement = 0x40; in roundAndPackFloat32()
313 roundIncrement = 0; in roundAndPackFloat32()
[all …]
/freebsd/lib/libc/softfloat/bits32/
H A Dsoftfloat.c202 int8 roundIncrement, roundBits; in roundAndPackFloat32() local
207 roundIncrement = 0x40; in roundAndPackFloat32()
210 roundIncrement = 0; in roundAndPackFloat32()
213 roundIncrement = 0x7F; in roundAndPackFloat32()
215 if ( roundingMode == float_round_up ) roundIncrement = 0; in roundAndPackFloat32()
218 if ( roundingMode == float_round_down ) roundIncrement = 0; in roundAndPackFloat32()
226 && ( (sbits32) ( zSig + roundIncrement ) < 0 ) ) in roundAndPackFloat32()
229 return packFloat32( zSign, 0xFF, 0 ) - ( roundIncrement == 0 ); in roundAndPackFloat32()
235 || ( zSig + roundIncrement < 0x80000000 ); in roundAndPackFloat32()
243 zSig = ( zSig + roundIncrement )>>7; in roundAndPackFloat32()