Lines Matching refs:shiftCount
310 int8 shiftCount; in normalizeFloat32Subnormal() local
312 shiftCount = countLeadingZeros32( aSig ) - 8; in normalizeFloat32Subnormal()
313 *zSigPtr = aSig<<shiftCount; in normalizeFloat32Subnormal()
314 *zExpPtr = 1 - shiftCount; in normalizeFloat32Subnormal()
425 int8 shiftCount; in normalizeRoundAndPackFloat32() local
427 shiftCount = countLeadingZeros32( zSig ) - 1; in normalizeRoundAndPackFloat32()
428 return roundAndPackFloat32( zSign, zExp - shiftCount, zSig<<shiftCount ); in normalizeRoundAndPackFloat32()
479 int8 shiftCount; in normalizeFloat64Subnormal() local
481 shiftCount = countLeadingZeros64( aSig ) - 11; in normalizeFloat64Subnormal()
482 *zSigPtr = aSig<<shiftCount; in normalizeFloat64Subnormal()
483 *zExpPtr = 1 - shiftCount; in normalizeFloat64Subnormal()
597 int8 shiftCount; in normalizeRoundAndPackFloat64() local
599 shiftCount = countLeadingZeros64( zSig ) - 1; in normalizeRoundAndPackFloat64()
600 return roundAndPackFloat64( zSign, zExp - shiftCount, zSig<<shiftCount ); in normalizeRoundAndPackFloat64()
656 int8 shiftCount; in normalizeFloatx80Subnormal() local
658 shiftCount = countLeadingZeros64( aSig ); in normalizeFloatx80Subnormal()
659 *zSigPtr = aSig<<shiftCount; in normalizeFloatx80Subnormal()
660 *zExpPtr = 1 - shiftCount; in normalizeFloatx80Subnormal()
879 int8 shiftCount; in normalizeRoundAndPackFloatx80() local
886 shiftCount = countLeadingZeros64( zSig0 ); in normalizeRoundAndPackFloatx80()
887 shortShift128Left( zSig0, zSig1, shiftCount, &zSig0, &zSig1 ); in normalizeRoundAndPackFloatx80()
888 zExp -= shiftCount; in normalizeRoundAndPackFloatx80()
969 int8 shiftCount; in normalizeFloat128Subnormal() local
972 shiftCount = countLeadingZeros64( aSig1 ) - 15; in normalizeFloat128Subnormal()
973 if ( shiftCount < 0 ) { in normalizeFloat128Subnormal()
974 *zSig0Ptr = aSig1>>( - shiftCount ); in normalizeFloat128Subnormal()
975 *zSig1Ptr = aSig1<<( shiftCount & 63 ); in normalizeFloat128Subnormal()
978 *zSig0Ptr = aSig1<<shiftCount; in normalizeFloat128Subnormal()
981 *zExpPtr = - shiftCount - 63; in normalizeFloat128Subnormal()
984 shiftCount = countLeadingZeros64( aSig0 ) - 15; in normalizeFloat128Subnormal()
985 shortShift128Left( aSig0, aSig1, shiftCount, zSig0Ptr, zSig1Ptr ); in normalizeFloat128Subnormal()
986 *zExpPtr = 1 - shiftCount; in normalizeFloat128Subnormal()
1143 int8 shiftCount; in normalizeRoundAndPackFloat128() local
1151 shiftCount = countLeadingZeros64( zSig0 ) - 15; in normalizeRoundAndPackFloat128()
1152 if ( 0 <= shiftCount ) { in normalizeRoundAndPackFloat128()
1154 shortShift128Left( zSig0, zSig1, shiftCount, &zSig0, &zSig1 ); in normalizeRoundAndPackFloat128()
1158 zSig0, zSig1, 0, - shiftCount, &zSig0, &zSig1, &zSig2 ); in normalizeRoundAndPackFloat128()
1160 zExp -= shiftCount; in normalizeRoundAndPackFloat128()
1196 int8 shiftCount; in int32_to_float64() local
1202 shiftCount = countLeadingZeros32( absA ) + 21; in int32_to_float64()
1204 return packFloat64( zSign, 0x432 - shiftCount, zSig<<shiftCount ); in int32_to_float64()
1222 int8 shiftCount; in int32_to_floatx80() local
1228 shiftCount = countLeadingZeros32( absA ) + 32; in int32_to_floatx80()
1230 return packFloatx80( zSign, 0x403E - shiftCount, zSig<<shiftCount ); in int32_to_floatx80()
1249 int8 shiftCount; in int32_to_float128() local
1255 shiftCount = countLeadingZeros32( absA ) + 17; in int32_to_float128()
1257 return packFloat128( zSign, 0x402E - shiftCount, zSig0<<shiftCount, 0 ); in int32_to_float128()
1275 int8 shiftCount; in int64_to_float32() local
1280 shiftCount = countLeadingZeros64( absA ) - 40; in int64_to_float32()
1281 if ( 0 <= shiftCount ) { in int64_to_float32()
1282 return packFloat32( zSign, 0x95 - shiftCount, absA<<shiftCount ); in int64_to_float32()
1285 shiftCount += 7; in int64_to_float32()
1286 if ( shiftCount < 0 ) { in int64_to_float32()
1287 shift64RightJamming( absA, - shiftCount, &absA ); in int64_to_float32()
1290 absA <<= shiftCount; in int64_to_float32()
1292 return roundAndPackFloat32( zSign, 0x9C - shiftCount, absA ); in int64_to_float32()
1331 int8 shiftCount; in int64_to_floatx80() local
1336 shiftCount = countLeadingZeros64( absA ); in int64_to_floatx80()
1337 return packFloatx80( zSign, 0x403E - shiftCount, absA<<shiftCount ); in int64_to_floatx80()
1356 int8 shiftCount; in int64_to_float128() local
1363 shiftCount = countLeadingZeros64( absA ) + 49; in int64_to_float128()
1364 zExp = 0x406E - shiftCount; in int64_to_float128()
1365 if ( 64 <= shiftCount ) { in int64_to_float128()
1368 shiftCount -= 64; in int64_to_float128()
1374 shortShift128Left( zSig0, zSig1, shiftCount, &zSig0, &zSig1 ); in int64_to_float128()
1397 int16 aExp, shiftCount; in float32_to_int32() local
1406 shiftCount = 0xAF - aExp; in float32_to_int32()
1409 if ( 0 < shiftCount ) shift64RightJamming( aSig64, shiftCount, &aSig64 ); in float32_to_int32()
1429 int16 aExp, shiftCount; in float32_to_int32_round_to_zero() local
1436 shiftCount = aExp - 0x9E; in float32_to_int32_round_to_zero()
1437 if ( 0 <= shiftCount ) { in float32_to_int32_round_to_zero()
1449 z = aSig>>( - shiftCount ); in float32_to_int32_round_to_zero()
1450 if ( (bits32) ( aSig<<( shiftCount & 31 ) ) ) { in float32_to_int32_round_to_zero()
1473 int16 aExp, shiftCount; in float32_to_int64() local
1480 shiftCount = 0xBE - aExp; in float32_to_int64()
1481 if ( shiftCount < 0 ) { in float32_to_int64()
1491 shift64ExtraRightJamming( aSig64, 0, shiftCount, &aSig64, &aSigExtra ); in float32_to_int64()
1510 int16 aExp, shiftCount; in float32_to_int64_round_to_zero() local
1518 shiftCount = aExp - 0xBE; in float32_to_int64_round_to_zero()
1519 if ( 0 <= shiftCount ) { in float32_to_int64_round_to_zero()
1534 z = aSig64>>( - shiftCount ); in float32_to_int64_round_to_zero()
1535 if ( (bits64) ( aSig64<<( shiftCount & 63 ) ) ) { in float32_to_int64_round_to_zero()
2343 int16 aExp, shiftCount; in float64_to_int32() local
2351 shiftCount = 0x42C - aExp; in float64_to_int32()
2352 if ( 0 < shiftCount ) shift64RightJamming( aSig, shiftCount, &aSig ); in float64_to_int32()
2372 int16 aExp, shiftCount; in float64_to_int32_round_to_zero() local
2388 shiftCount = 0x433 - aExp; in float64_to_int32_round_to_zero()
2390 aSig >>= shiftCount; in float64_to_int32_round_to_zero()
2398 if ( ( aSig<<shiftCount ) != savedASig ) { in float64_to_int32_round_to_zero()
2420 int16 aExp, shiftCount; in float64_to_int64() local
2427 shiftCount = 0x433 - aExp; in float64_to_int64()
2428 if ( shiftCount <= 0 ) { in float64_to_int64()
2440 aSig <<= - shiftCount; in float64_to_int64()
2443 shift64ExtraRightJamming( aSig, 0, shiftCount, &aSig, &aSigExtra ); in float64_to_int64()
2463 int16 aExp, shiftCount; in float64_to_int64_no_overflow() local
2470 shiftCount = 0x433 - aExp; in float64_to_int64_no_overflow()
2471 if ( shiftCount <= 0 ) { in float64_to_int64_no_overflow()
2477 aSig <<= - shiftCount; in float64_to_int64_no_overflow()
2480 shift64ExtraRightJamming( aSig, 0, shiftCount, &aSig, &aSigExtra ); in float64_to_int64_no_overflow()
2501 int16 aExp, shiftCount; in float64_to_int64_round_to_zero() local
2509 shiftCount = aExp - 0x433; in float64_to_int64_round_to_zero()
2510 if ( 0 <= shiftCount ) { in float64_to_int64_round_to_zero()
2523 z = aSig<<shiftCount; in float64_to_int64_round_to_zero()
2530 z = aSig>>( - shiftCount ); in float64_to_int64_round_to_zero()
2531 if ( (bits64) ( aSig<<( shiftCount & 63 ) ) ) { in float64_to_int64_round_to_zero()
3341 int32 aExp, shiftCount; in floatx80_to_int32() local
3348 shiftCount = 0x4037 - aExp; in floatx80_to_int32()
3349 if ( shiftCount <= 0 ) shiftCount = 1; in floatx80_to_int32()
3350 shift64RightJamming( aSig, shiftCount, &aSig ); in floatx80_to_int32()
3369 int32 aExp, shiftCount; in floatx80_to_int32_round_to_zero() local
3384 shiftCount = 0x403E - aExp; in floatx80_to_int32_round_to_zero()
3386 aSig >>= shiftCount; in floatx80_to_int32_round_to_zero()
3394 if ( ( aSig<<shiftCount ) != savedASig ) { in floatx80_to_int32_round_to_zero()
3415 int32 aExp, shiftCount; in floatx80_to_int64() local
3421 shiftCount = 0x403E - aExp; in floatx80_to_int64()
3422 if ( shiftCount <= 0 ) { in floatx80_to_int64()
3423 if ( shiftCount ) { in floatx80_to_int64()
3436 shift64ExtraRightJamming( aSig, 0, shiftCount, &aSig, &aSigExtra ); in floatx80_to_int64()
3456 int32 aExp, shiftCount; in floatx80_to_int64_round_to_zero() local
3463 shiftCount = aExp - 0x403E; in floatx80_to_int64_round_to_zero()
3464 if ( 0 <= shiftCount ) { in floatx80_to_int64_round_to_zero()
3478 z = aSig>>( - shiftCount ); in floatx80_to_int64_round_to_zero()
3479 if ( (bits64) ( aSig<<( shiftCount & 63 ) ) ) { in floatx80_to_int64_round_to_zero()
4357 int32 aExp, shiftCount; in float128_to_int32() local
4367 shiftCount = 0x4028 - aExp; in float128_to_int32()
4368 if ( 0 < shiftCount ) shift64RightJamming( aSig0, shiftCount, &aSig0 ); in float128_to_int32()
4387 int32 aExp, shiftCount; in float128_to_int32_round_to_zero() local
4405 shiftCount = 0x402F - aExp; in float128_to_int32_round_to_zero()
4407 aSig0 >>= shiftCount; in float128_to_int32_round_to_zero()
4415 if ( ( aSig0<<shiftCount ) != savedASig ) { in float128_to_int32_round_to_zero()
4436 int32 aExp, shiftCount; in float128_to_int64() local
4444 shiftCount = 0x402F - aExp; in float128_to_int64()
4445 if ( shiftCount <= 0 ) { in float128_to_int64()
4457 shortShift128Left( aSig0, aSig1, - shiftCount, &aSig0, &aSig1 ); in float128_to_int64()
4460 shift64ExtraRightJamming( aSig0, aSig1, shiftCount, &aSig0, &aSig1 ); in float128_to_int64()
4480 int32 aExp, shiftCount; in float128_to_int64_round_to_zero() local
4489 shiftCount = aExp - 0x402F; in float128_to_int64_round_to_zero()
4490 if ( 0 < shiftCount ) { in float128_to_int64_round_to_zero()
4505 z = ( aSig0<<shiftCount ) | ( aSig1>>( ( - shiftCount ) & 63 ) ); in float128_to_int64_round_to_zero()
4506 if ( (bits64) ( aSig1<<shiftCount ) ) { in float128_to_int64_round_to_zero()
4517 z = aSig0>>( - shiftCount ); in float128_to_int64_round_to_zero()
4519 || ( shiftCount && (bits64) ( aSig0<<( shiftCount & 63 ) ) ) ) { in float128_to_int64_round_to_zero()
5509 int16 aExp, shiftCount; in float64_to_uint32_round_to_zero() local
5531 shiftCount = 0x433 - aExp; in float64_to_uint32_round_to_zero()
5533 aSig >>= shiftCount; in float64_to_uint32_round_to_zero()
5535 if ( ( aSig<<shiftCount ) != savedASig ) { in float64_to_uint32_round_to_zero()
5555 int16 aExp, shiftCount; in float32_to_uint32_round_to_zero() local
5562 shiftCount = aExp - 0x9E; in float32_to_uint32_round_to_zero()
5568 if ( 0 < shiftCount ) { in float32_to_uint32_round_to_zero()
5577 z = aSig>>( - shiftCount ); in float32_to_uint32_round_to_zero()
5578 if ( aSig<<( shiftCount & 31 ) ) { in float32_to_uint32_round_to_zero()