Lines Matching refs:shiftCount
254 int8 shiftCount; in normalizeFloat32Subnormal() local
256 shiftCount = countLeadingZeros32( aSig ) - 8; in normalizeFloat32Subnormal()
257 *zSigPtr = aSig<<shiftCount; in normalizeFloat32Subnormal()
258 *zExpPtr = 1 - shiftCount; in normalizeFloat32Subnormal()
369 int8 shiftCount; in normalizeRoundAndPackFloat32() local
371 shiftCount = countLeadingZeros32( zSig ) - 1; in normalizeRoundAndPackFloat32()
372 return roundAndPackFloat32( zSign, zExp - shiftCount, zSig<<shiftCount ); in normalizeRoundAndPackFloat32()
423 int8 shiftCount; in normalizeFloat64Subnormal() local
425 shiftCount = countLeadingZeros64( aSig ) - 11; in normalizeFloat64Subnormal()
426 *zSigPtr = aSig<<shiftCount; in normalizeFloat64Subnormal()
427 *zExpPtr = 1 - shiftCount; in normalizeFloat64Subnormal()
541 int8 shiftCount; in normalizeRoundAndPackFloat64() local
543 shiftCount = countLeadingZeros64( zSig ) - 1; in normalizeRoundAndPackFloat64()
544 return roundAndPackFloat64( zSign, zExp - shiftCount, zSig<<shiftCount ); in normalizeRoundAndPackFloat64()
600 int8 shiftCount; in normalizeFloatx80Subnormal() local
602 shiftCount = countLeadingZeros64( aSig ); in normalizeFloatx80Subnormal()
603 *zSigPtr = aSig<<shiftCount; in normalizeFloatx80Subnormal()
604 *zExpPtr = 1 - shiftCount; in normalizeFloatx80Subnormal()
823 int8 shiftCount; in normalizeRoundAndPackFloatx80() local
830 shiftCount = countLeadingZeros64( zSig0 ); in normalizeRoundAndPackFloatx80()
831 shortShift128Left( zSig0, zSig1, shiftCount, &zSig0, &zSig1 ); in normalizeRoundAndPackFloatx80()
832 zExp -= shiftCount; in normalizeRoundAndPackFloatx80()
913 int8 shiftCount; in normalizeFloat128Subnormal() local
916 shiftCount = countLeadingZeros64( aSig1 ) - 15; in normalizeFloat128Subnormal()
917 if ( shiftCount < 0 ) { in normalizeFloat128Subnormal()
918 *zSig0Ptr = aSig1>>( - shiftCount ); in normalizeFloat128Subnormal()
919 *zSig1Ptr = aSig1<<( shiftCount & 63 ); in normalizeFloat128Subnormal()
922 *zSig0Ptr = aSig1<<shiftCount; in normalizeFloat128Subnormal()
925 *zExpPtr = - shiftCount - 63; in normalizeFloat128Subnormal()
928 shiftCount = countLeadingZeros64( aSig0 ) - 15; in normalizeFloat128Subnormal()
929 shortShift128Left( aSig0, aSig1, shiftCount, zSig0Ptr, zSig1Ptr ); in normalizeFloat128Subnormal()
930 *zExpPtr = 1 - shiftCount; in normalizeFloat128Subnormal()
1087 int8 shiftCount; in normalizeRoundAndPackFloat128() local
1095 shiftCount = countLeadingZeros64( zSig0 ) - 15; in normalizeRoundAndPackFloat128()
1096 if ( 0 <= shiftCount ) { in normalizeRoundAndPackFloat128()
1098 shortShift128Left( zSig0, zSig1, shiftCount, &zSig0, &zSig1 ); in normalizeRoundAndPackFloat128()
1102 zSig0, zSig1, 0, - shiftCount, &zSig0, &zSig1, &zSig2 ); in normalizeRoundAndPackFloat128()
1104 zExp -= shiftCount; in normalizeRoundAndPackFloat128()
1151 int8 shiftCount; in int32_to_float64() local
1157 shiftCount = countLeadingZeros32( absA ) + 21; in int32_to_float64()
1159 return packFloat64( zSign, 0x432 - shiftCount, zSig<<shiftCount ); in int32_to_float64()
1166 int8 shiftCount; in uint32_to_float64() local
1170 shiftCount = countLeadingZeros32( a ) + 21; in uint32_to_float64()
1171 return packFloat64( 0, 0x432 - shiftCount, zSig<<shiftCount ); in uint32_to_float64()
1190 int8 shiftCount; in int32_to_floatx80() local
1196 shiftCount = countLeadingZeros32( absA ) + 32; in int32_to_floatx80()
1198 return packFloatx80( zSign, 0x403E - shiftCount, zSig<<shiftCount ); in int32_to_floatx80()
1204 int8 shiftCount; in uint32_to_floatx80() local
1208 shiftCount = countLeadingZeros32( a ) + 32; in uint32_to_floatx80()
1209 return packFloatx80( 0, 0x403E - shiftCount, zSig<<shiftCount ); in uint32_to_floatx80()
1228 int8 shiftCount; in int32_to_float128() local
1234 shiftCount = countLeadingZeros32( absA ) + 17; in int32_to_float128()
1236 return packFloat128( zSign, 0x402E - shiftCount, zSig0<<shiftCount, 0 ); in int32_to_float128()
1242 int8 shiftCount; in uint32_to_float128() local
1246 shiftCount = countLeadingZeros32( a ) + 17; in uint32_to_float128()
1247 return packFloat128( 0, 0x402E - shiftCount, zSig0<<shiftCount, 0 ); in uint32_to_float128()
1265 int8 shiftCount; in int64_to_float32() local
1270 shiftCount = countLeadingZeros64( absA ) - 40; in int64_to_float32()
1271 if ( 0 <= shiftCount ) { in int64_to_float32()
1272 return packFloat32( zSign, 0x95 - shiftCount, absA<<shiftCount ); in int64_to_float32()
1275 shiftCount += 7; in int64_to_float32()
1276 if ( shiftCount < 0 ) { in int64_to_float32()
1277 shift64RightJamming( absA, - shiftCount, &absA ); in int64_to_float32()
1280 absA <<= shiftCount; in int64_to_float32()
1282 return roundAndPackFloat32( zSign, 0x9C - shiftCount, absA ); in int64_to_float32()
1321 int8 shiftCount; in int64_to_floatx80() local
1326 shiftCount = countLeadingZeros64( absA ); in int64_to_floatx80()
1327 return packFloatx80( zSign, 0x403E - shiftCount, absA<<shiftCount ); in int64_to_floatx80()
1348 int8 shiftCount; in int64_to_float128() local
1355 shiftCount = countLeadingZeros64( absA ) + 49; in int64_to_float128()
1356 zExp = 0x406E - shiftCount; in int64_to_float128()
1357 if ( 64 <= shiftCount ) { in int64_to_float128()
1360 shiftCount -= 64; in int64_to_float128()
1366 shortShift128Left( zSig0, zSig1, shiftCount, &zSig0, &zSig1 ); in int64_to_float128()
1388 int16 aExp, shiftCount; in float32_to_int32() local
1397 shiftCount = 0xAF - aExp; in float32_to_int32()
1400 if ( 0 < shiftCount ) shift64RightJamming( aSig64, shiftCount, &aSig64 ); in float32_to_int32()
1420 int16 aExp, shiftCount; in float32_to_int32_round_to_zero() local
1427 shiftCount = aExp - 0x9E; in float32_to_int32_round_to_zero()
1428 if ( 0 <= shiftCount ) { in float32_to_int32_round_to_zero()
1440 z = aSig>>( - shiftCount ); in float32_to_int32_round_to_zero()
1441 if ( (bits32) ( aSig<<( shiftCount & 31 ) ) ) { in float32_to_int32_round_to_zero()
1464 int16 aExp, shiftCount; in float32_to_int64() local
1471 shiftCount = 0xBE - aExp; in float32_to_int64()
1472 if ( shiftCount < 0 ) { in float32_to_int64()
1482 shift64ExtraRightJamming( aSig64, 0, shiftCount, &aSig64, &aSigExtra ); in float32_to_int64()
1501 int16 aExp, shiftCount; in float32_to_int64_round_to_zero() local
1509 shiftCount = aExp - 0xBE; in float32_to_int64_round_to_zero()
1510 if ( 0 <= shiftCount ) { in float32_to_int64_round_to_zero()
1525 z = aSig64>>( - shiftCount ); in float32_to_int64_round_to_zero()
1526 if ( (bits64) ( aSig64<<( shiftCount & 63 ) ) ) { in float32_to_int64_round_to_zero()
2336 int16 aExp, shiftCount; in float64_to_int32() local
2344 shiftCount = 0x42C - aExp; in float64_to_int32()
2345 if ( 0 < shiftCount ) shift64RightJamming( aSig, shiftCount, &aSig ); in float64_to_int32()
2365 int16 aExp, shiftCount; in float64_to_int32_round_to_zero() local
2381 shiftCount = 0x433 - aExp; in float64_to_int32_round_to_zero()
2383 aSig >>= shiftCount; in float64_to_int32_round_to_zero()
2391 if ( ( aSig<<shiftCount ) != savedASig ) { in float64_to_int32_round_to_zero()
2413 int16 aExp, shiftCount; in float64_to_int64() local
2420 shiftCount = 0x433 - aExp; in float64_to_int64()
2421 if ( shiftCount <= 0 ) { in float64_to_int64()
2433 aSig <<= - shiftCount; in float64_to_int64()
2436 shift64ExtraRightJamming( aSig, 0, shiftCount, &aSig, &aSigExtra ); in float64_to_int64()
2456 int16 aExp, shiftCount; in float64_to_int64_round_to_zero() local
2464 shiftCount = aExp - 0x433; in float64_to_int64_round_to_zero()
2465 if ( 0 <= shiftCount ) { in float64_to_int64_round_to_zero()
2478 z = aSig<<shiftCount; in float64_to_int64_round_to_zero()
2485 z = aSig>>( - shiftCount ); in float64_to_int64_round_to_zero()
2486 if ( (bits64) ( aSig<<( shiftCount & 63 ) ) ) { in float64_to_int64_round_to_zero()
3298 int32 aExp, shiftCount; in floatx80_to_int32() local
3305 shiftCount = 0x4037 - aExp; in floatx80_to_int32()
3306 if ( shiftCount <= 0 ) shiftCount = 1; in floatx80_to_int32()
3307 shift64RightJamming( aSig, shiftCount, &aSig ); in floatx80_to_int32()
3326 int32 aExp, shiftCount; in floatx80_to_int32_round_to_zero() local
3341 shiftCount = 0x403E - aExp; in floatx80_to_int32_round_to_zero()
3343 aSig >>= shiftCount; in floatx80_to_int32_round_to_zero()
3351 if ( ( aSig<<shiftCount ) != savedASig ) { in floatx80_to_int32_round_to_zero()
3372 int32 aExp, shiftCount; in floatx80_to_int64() local
3378 shiftCount = 0x403E - aExp; in floatx80_to_int64()
3379 if ( shiftCount <= 0 ) { in floatx80_to_int64()
3380 if ( shiftCount ) { in floatx80_to_int64()
3393 shift64ExtraRightJamming( aSig, 0, shiftCount, &aSig, &aSigExtra ); in floatx80_to_int64()
3413 int32 aExp, shiftCount; in floatx80_to_int64_round_to_zero() local
3420 shiftCount = aExp - 0x403E; in floatx80_to_int64_round_to_zero()
3421 if ( 0 <= shiftCount ) { in floatx80_to_int64_round_to_zero()
3435 z = aSig>>( - shiftCount ); in floatx80_to_int64_round_to_zero()
3436 if ( (bits64) ( aSig<<( shiftCount & 63 ) ) ) { in floatx80_to_int64_round_to_zero()
4316 int32 aExp, shiftCount; in float128_to_int32() local
4326 shiftCount = 0x4028 - aExp; in float128_to_int32()
4327 if ( 0 < shiftCount ) shift64RightJamming( aSig0, shiftCount, &aSig0 ); in float128_to_int32()
4346 int32 aExp, shiftCount; in float128_to_int32_round_to_zero() local
4364 shiftCount = 0x402F - aExp; in float128_to_int32_round_to_zero()
4366 aSig0 >>= shiftCount; in float128_to_int32_round_to_zero()
4374 if ( ( aSig0<<shiftCount ) != savedASig ) { in float128_to_int32_round_to_zero()
4395 int32 aExp, shiftCount; in float128_to_int64() local
4403 shiftCount = 0x402F - aExp; in float128_to_int64()
4404 if ( shiftCount <= 0 ) { in float128_to_int64()
4416 shortShift128Left( aSig0, aSig1, - shiftCount, &aSig0, &aSig1 ); in float128_to_int64()
4419 shift64ExtraRightJamming( aSig0, aSig1, shiftCount, &aSig0, &aSig1 ); in float128_to_int64()
4439 int32 aExp, shiftCount; in float128_to_int64_round_to_zero() local
4448 shiftCount = aExp - 0x402F; in float128_to_int64_round_to_zero()
4449 if ( 0 < shiftCount ) { in float128_to_int64_round_to_zero()
4464 z = ( aSig0<<shiftCount ) | ( aSig1>>( ( - shiftCount ) & 63 ) ); in float128_to_int64_round_to_zero()
4465 if ( (bits64) ( aSig1<<shiftCount ) ) { in float128_to_int64_round_to_zero()
4476 z = aSig0>>( - shiftCount ); in float128_to_int64_round_to_zero()
4478 || ( shiftCount && (bits64) ( aSig0<<( shiftCount & 63 ) ) ) ) { in float128_to_int64_round_to_zero()
4495 int32 aExp, shiftCount; in float128_to_uint64_round_to_zero() local
4504 shiftCount = aExp - 0x402F; in float128_to_uint64_round_to_zero()
4505 if ( 0 < shiftCount ) { in float128_to_uint64_round_to_zero()
4517 z = ( aSig0<<shiftCount ) | ( aSig1>>( ( - shiftCount ) & 63 ) ); in float128_to_uint64_round_to_zero()
4518 if ( (bits64) ( aSig1<<shiftCount ) ) { in float128_to_uint64_round_to_zero()
4529 z = aSig0>>( - shiftCount ); in float128_to_uint64_round_to_zero()
4530 if (aSig1 || ( shiftCount && (bits64) ( aSig0<<( shiftCount & 63 ) ) ) ) { in float128_to_uint64_round_to_zero()
5523 int16 aExp, shiftCount; in float64_to_uint32_round_to_zero() local
5545 shiftCount = 0x433 - aExp; in float64_to_uint32_round_to_zero()
5547 aSig >>= shiftCount; in float64_to_uint32_round_to_zero()
5549 if ( ( aSig<<shiftCount ) != savedASig ) { in float64_to_uint32_round_to_zero()
5569 int16 aExp, shiftCount; in float32_to_uint32_round_to_zero() local
5576 shiftCount = aExp - 0x9E; in float32_to_uint32_round_to_zero()
5582 if ( 0 < shiftCount ) { in float32_to_uint32_round_to_zero()
5591 z = aSig>>( - shiftCount ); in float32_to_uint32_round_to_zero()
5592 if ( aSig<<( shiftCount & 31 ) ) { in float32_to_uint32_round_to_zero()