Lines Matching refs:roundIncrement

74     int8 roundIncrement, roundBits;  in roundAndPackInt32()  local
79 roundIncrement = 0x40; in roundAndPackInt32()
82 roundIncrement = 0; in roundAndPackInt32()
85 roundIncrement = 0x7F; in roundAndPackInt32()
87 if ( roundingMode == float_round_up ) roundIncrement = 0; in roundAndPackInt32()
90 if ( roundingMode == float_round_down ) roundIncrement = 0; in roundAndPackInt32()
95 absZ = ( absZ + roundIncrement )>>7; in roundAndPackInt32()
221 int8 roundIncrement, roundBits; in roundAndPackFloat32() local
226 roundIncrement = 0x40; in roundAndPackFloat32()
229 roundIncrement = 0; in roundAndPackFloat32()
232 roundIncrement = 0x7F; in roundAndPackFloat32()
234 if ( roundingMode == float_round_up ) roundIncrement = 0; in roundAndPackFloat32()
237 if ( roundingMode == float_round_down ) roundIncrement = 0; in roundAndPackFloat32()
245 && ( (sbits32) ( zSig + roundIncrement ) < 0 ) ) in roundAndPackFloat32()
248 return packFloat32( zSign, 0xFF, 0 ) - ( roundIncrement == 0 ); in roundAndPackFloat32()
254 || ( zSig + roundIncrement < 0x80000000 ); in roundAndPackFloat32()
262 zSig = ( zSig + roundIncrement )>>7; in roundAndPackFloat32()
392 int16 roundIncrement, roundBits; in roundAndPackFloat64() local
397 roundIncrement = 0x200; in roundAndPackFloat64()
400 roundIncrement = 0; in roundAndPackFloat64()
403 roundIncrement = 0x3FF; in roundAndPackFloat64()
405 if ( roundingMode == float_round_up ) roundIncrement = 0; in roundAndPackFloat64()
408 if ( roundingMode == float_round_down ) roundIncrement = 0; in roundAndPackFloat64()
416 && ( (sbits64) ( zSig + roundIncrement ) < 0 ) ) in roundAndPackFloat64()
421 return packFloat64( zSign, 0x7FF, 0 ) - ( roundIncrement == 0 ); in roundAndPackFloat64()
427 || ( zSig + roundIncrement < LIT64( 0x8000000000000000 ) ); in roundAndPackFloat64()
435 zSig = ( zSig + roundIncrement )>>10; in roundAndPackFloat64()
571 int64 roundIncrement, roundMask, roundBits; in roundAndPackFloatx80() local
578 roundIncrement = LIT64( 0x0000000000000400 ); in roundAndPackFloatx80()
582 roundIncrement = LIT64( 0x0000008000000000 ); in roundAndPackFloatx80()
591 roundIncrement = 0; in roundAndPackFloatx80()
594 roundIncrement = roundMask; in roundAndPackFloatx80()
596 if ( roundingMode == float_round_up ) roundIncrement = 0; in roundAndPackFloatx80()
599 if ( roundingMode == float_round_down ) roundIncrement = 0; in roundAndPackFloatx80()
606 || ( ( zExp == 0x7FFE ) && ( zSig0 + roundIncrement < zSig0 ) ) in roundAndPackFloatx80()
614 || ( zSig0 <= zSig0 + roundIncrement ); in roundAndPackFloatx80()
620 zSig0 += roundIncrement; in roundAndPackFloatx80()
622 roundIncrement = roundMask + 1; in roundAndPackFloatx80()
623 if ( roundNearestEven && ( roundBits<<1 == roundIncrement ) ) { in roundAndPackFloatx80()
624 roundMask |= roundIncrement; in roundAndPackFloatx80()
631 zSig0 += roundIncrement; in roundAndPackFloatx80()
632 if ( zSig0 < roundIncrement ) { in roundAndPackFloatx80()
636 roundIncrement = roundMask + 1; in roundAndPackFloatx80()
637 if ( roundNearestEven && ( roundBits<<1 == roundIncrement ) ) { in roundAndPackFloatx80()
638 roundMask |= roundIncrement; in roundAndPackFloatx80()