Lines Matching refs:shiftCount
252 int8 shiftCount; in normalizeFloat32Subnormal() local
254 shiftCount = countLeadingZeros32( aSig ) - 8; in normalizeFloat32Subnormal()
255 *zSigPtr = aSig<<shiftCount; in normalizeFloat32Subnormal()
256 *zExpPtr = 1 - shiftCount; in normalizeFloat32Subnormal()
367 int8 shiftCount; in normalizeRoundAndPackFloat32() local
369 shiftCount = countLeadingZeros32( zSig ) - 1; in normalizeRoundAndPackFloat32()
370 return roundAndPackFloat32( zSign, zExp - shiftCount, zSig<<shiftCount ); in normalizeRoundAndPackFloat32()
421 int8 shiftCount; in normalizeFloat64Subnormal() local
423 shiftCount = countLeadingZeros64( aSig ) - 11; in normalizeFloat64Subnormal()
424 *zSigPtr = aSig<<shiftCount; in normalizeFloat64Subnormal()
425 *zExpPtr = 1 - shiftCount; in normalizeFloat64Subnormal()
539 int8 shiftCount; in normalizeRoundAndPackFloat64() local
541 shiftCount = countLeadingZeros64( zSig ) - 1; in normalizeRoundAndPackFloat64()
542 return roundAndPackFloat64( zSign, zExp - shiftCount, zSig<<shiftCount ); in normalizeRoundAndPackFloat64()
598 int8 shiftCount; in normalizeFloatx80Subnormal() local
600 shiftCount = countLeadingZeros64( aSig ); in normalizeFloatx80Subnormal()
601 *zSigPtr = aSig<<shiftCount; in normalizeFloatx80Subnormal()
602 *zExpPtr = 1 - shiftCount; in normalizeFloatx80Subnormal()
821 int8 shiftCount; in normalizeRoundAndPackFloatx80() local
828 shiftCount = countLeadingZeros64( zSig0 ); in normalizeRoundAndPackFloatx80()
829 shortShift128Left( zSig0, zSig1, shiftCount, &zSig0, &zSig1 ); in normalizeRoundAndPackFloatx80()
830 zExp -= shiftCount; in normalizeRoundAndPackFloatx80()
911 int8 shiftCount; in normalizeFloat128Subnormal() local
914 shiftCount = countLeadingZeros64( aSig1 ) - 15; in normalizeFloat128Subnormal()
915 if ( shiftCount < 0 ) { in normalizeFloat128Subnormal()
916 *zSig0Ptr = aSig1>>( - shiftCount ); in normalizeFloat128Subnormal()
917 *zSig1Ptr = aSig1<<( shiftCount & 63 ); in normalizeFloat128Subnormal()
920 *zSig0Ptr = aSig1<<shiftCount; in normalizeFloat128Subnormal()
923 *zExpPtr = - shiftCount - 63; in normalizeFloat128Subnormal()
926 shiftCount = countLeadingZeros64( aSig0 ) - 15; in normalizeFloat128Subnormal()
927 shortShift128Left( aSig0, aSig1, shiftCount, zSig0Ptr, zSig1Ptr ); in normalizeFloat128Subnormal()
928 *zExpPtr = 1 - shiftCount; in normalizeFloat128Subnormal()
1085 int8 shiftCount; in normalizeRoundAndPackFloat128() local
1093 shiftCount = countLeadingZeros64( zSig0 ) - 15; in normalizeRoundAndPackFloat128()
1094 if ( 0 <= shiftCount ) { in normalizeRoundAndPackFloat128()
1096 shortShift128Left( zSig0, zSig1, shiftCount, &zSig0, &zSig1 ); in normalizeRoundAndPackFloat128()
1100 zSig0, zSig1, 0, - shiftCount, &zSig0, &zSig1, &zSig2 ); in normalizeRoundAndPackFloat128()
1102 zExp -= shiftCount; in normalizeRoundAndPackFloat128()
1149 int8 shiftCount; in int32_to_float64() local
1155 shiftCount = countLeadingZeros32( absA ) + 21; in int32_to_float64()
1157 return packFloat64( zSign, 0x432 - shiftCount, zSig<<shiftCount ); in int32_to_float64()
1164 int8 shiftCount; in uint32_to_float64() local
1168 shiftCount = countLeadingZeros32( a ) + 21; in uint32_to_float64()
1169 return packFloat64( 0, 0x432 - shiftCount, zSig<<shiftCount ); in uint32_to_float64()
1188 int8 shiftCount; in int32_to_floatx80() local
1194 shiftCount = countLeadingZeros32( absA ) + 32; in int32_to_floatx80()
1196 return packFloatx80( zSign, 0x403E - shiftCount, zSig<<shiftCount ); in int32_to_floatx80()
1202 int8 shiftCount; in uint32_to_floatx80() local
1206 shiftCount = countLeadingZeros32( a ) + 32; in uint32_to_floatx80()
1207 return packFloatx80( 0, 0x403E - shiftCount, zSig<<shiftCount ); in uint32_to_floatx80()
1226 int8 shiftCount; in int32_to_float128() local
1232 shiftCount = countLeadingZeros32( absA ) + 17; in int32_to_float128()
1234 return packFloat128( zSign, 0x402E - shiftCount, zSig0<<shiftCount, 0 ); in int32_to_float128()
1240 int8 shiftCount; in uint32_to_float128() local
1244 shiftCount = countLeadingZeros32( a ) + 17; in uint32_to_float128()
1245 return packFloat128( 0, 0x402E - shiftCount, zSig0<<shiftCount, 0 ); in uint32_to_float128()
1263 int8 shiftCount; in int64_to_float32() local
1268 shiftCount = countLeadingZeros64( absA ) - 40; in int64_to_float32()
1269 if ( 0 <= shiftCount ) { in int64_to_float32()
1270 return packFloat32( zSign, 0x95 - shiftCount, absA<<shiftCount ); in int64_to_float32()
1273 shiftCount += 7; in int64_to_float32()
1274 if ( shiftCount < 0 ) { in int64_to_float32()
1275 shift64RightJamming( absA, - shiftCount, &absA ); in int64_to_float32()
1278 absA <<= shiftCount; in int64_to_float32()
1280 return roundAndPackFloat32( zSign, 0x9C - shiftCount, absA ); in int64_to_float32()
1319 int8 shiftCount; in int64_to_floatx80() local
1324 shiftCount = countLeadingZeros64( absA ); in int64_to_floatx80()
1325 return packFloatx80( zSign, 0x403E - shiftCount, absA<<shiftCount ); in int64_to_floatx80()
1346 int8 shiftCount; in int64_to_float128() local
1353 shiftCount = countLeadingZeros64( absA ) + 49; in int64_to_float128()
1354 zExp = 0x406E - shiftCount; in int64_to_float128()
1355 if ( 64 <= shiftCount ) { in int64_to_float128()
1358 shiftCount -= 64; in int64_to_float128()
1364 shortShift128Left( zSig0, zSig1, shiftCount, &zSig0, &zSig1 ); in int64_to_float128()
1386 int16 aExp, shiftCount; in float32_to_int32() local
1395 shiftCount = 0xAF - aExp; in float32_to_int32()
1398 if ( 0 < shiftCount ) shift64RightJamming( aSig64, shiftCount, &aSig64 ); in float32_to_int32()
1418 int16 aExp, shiftCount; in float32_to_int32_round_to_zero() local
1425 shiftCount = aExp - 0x9E; in float32_to_int32_round_to_zero()
1426 if ( 0 <= shiftCount ) { in float32_to_int32_round_to_zero()
1438 z = aSig>>( - shiftCount ); in float32_to_int32_round_to_zero()
1439 if ( (bits32) ( aSig<<( shiftCount & 31 ) ) ) { in float32_to_int32_round_to_zero()
1462 int16 aExp, shiftCount; in float32_to_int64() local
1469 shiftCount = 0xBE - aExp; in float32_to_int64()
1470 if ( shiftCount < 0 ) { in float32_to_int64()
1480 shift64ExtraRightJamming( aSig64, 0, shiftCount, &aSig64, &aSigExtra ); in float32_to_int64()
1499 int16 aExp, shiftCount; in float32_to_int64_round_to_zero() local
1507 shiftCount = aExp - 0xBE; in float32_to_int64_round_to_zero()
1508 if ( 0 <= shiftCount ) { in float32_to_int64_round_to_zero()
1523 z = aSig64>>( - shiftCount ); in float32_to_int64_round_to_zero()
1524 if ( (bits64) ( aSig64<<( shiftCount & 63 ) ) ) { in float32_to_int64_round_to_zero()
2334 int16 aExp, shiftCount; in float64_to_int32() local
2342 shiftCount = 0x42C - aExp; in float64_to_int32()
2343 if ( 0 < shiftCount ) shift64RightJamming( aSig, shiftCount, &aSig ); in float64_to_int32()
2363 int16 aExp, shiftCount; in float64_to_int32_round_to_zero() local
2379 shiftCount = 0x433 - aExp; in float64_to_int32_round_to_zero()
2381 aSig >>= shiftCount; in float64_to_int32_round_to_zero()
2389 if ( ( aSig<<shiftCount ) != savedASig ) { in float64_to_int32_round_to_zero()
2411 int16 aExp, shiftCount; in float64_to_int64() local
2418 shiftCount = 0x433 - aExp; in float64_to_int64()
2419 if ( shiftCount <= 0 ) { in float64_to_int64()
2431 aSig <<= - shiftCount; in float64_to_int64()
2434 shift64ExtraRightJamming( aSig, 0, shiftCount, &aSig, &aSigExtra ); in float64_to_int64()
2454 int16 aExp, shiftCount; in float64_to_int64_round_to_zero() local
2462 shiftCount = aExp - 0x433; in float64_to_int64_round_to_zero()
2463 if ( 0 <= shiftCount ) { in float64_to_int64_round_to_zero()
2476 z = aSig<<shiftCount; in float64_to_int64_round_to_zero()
2483 z = aSig>>( - shiftCount ); in float64_to_int64_round_to_zero()
2484 if ( (bits64) ( aSig<<( shiftCount & 63 ) ) ) { in float64_to_int64_round_to_zero()
3296 int32 aExp, shiftCount; in floatx80_to_int32() local
3303 shiftCount = 0x4037 - aExp; in floatx80_to_int32()
3304 if ( shiftCount <= 0 ) shiftCount = 1; in floatx80_to_int32()
3305 shift64RightJamming( aSig, shiftCount, &aSig ); in floatx80_to_int32()
3324 int32 aExp, shiftCount; in floatx80_to_int32_round_to_zero() local
3339 shiftCount = 0x403E - aExp; in floatx80_to_int32_round_to_zero()
3341 aSig >>= shiftCount; in floatx80_to_int32_round_to_zero()
3349 if ( ( aSig<<shiftCount ) != savedASig ) { in floatx80_to_int32_round_to_zero()
3370 int32 aExp, shiftCount; in floatx80_to_int64() local
3376 shiftCount = 0x403E - aExp; in floatx80_to_int64()
3377 if ( shiftCount <= 0 ) { in floatx80_to_int64()
3378 if ( shiftCount ) { in floatx80_to_int64()
3391 shift64ExtraRightJamming( aSig, 0, shiftCount, &aSig, &aSigExtra ); in floatx80_to_int64()
3411 int32 aExp, shiftCount; in floatx80_to_int64_round_to_zero() local
3418 shiftCount = aExp - 0x403E; in floatx80_to_int64_round_to_zero()
3419 if ( 0 <= shiftCount ) { in floatx80_to_int64_round_to_zero()
3433 z = aSig>>( - shiftCount ); in floatx80_to_int64_round_to_zero()
3434 if ( (bits64) ( aSig<<( shiftCount & 63 ) ) ) { in floatx80_to_int64_round_to_zero()
4314 int32 aExp, shiftCount; in float128_to_int32() local
4324 shiftCount = 0x4028 - aExp; in float128_to_int32()
4325 if ( 0 < shiftCount ) shift64RightJamming( aSig0, shiftCount, &aSig0 ); in float128_to_int32()
4344 int32 aExp, shiftCount; in float128_to_int32_round_to_zero() local
4362 shiftCount = 0x402F - aExp; in float128_to_int32_round_to_zero()
4364 aSig0 >>= shiftCount; in float128_to_int32_round_to_zero()
4372 if ( ( aSig0<<shiftCount ) != savedASig ) { in float128_to_int32_round_to_zero()
4393 int32 aExp, shiftCount; in float128_to_int64() local
4401 shiftCount = 0x402F - aExp; in float128_to_int64()
4402 if ( shiftCount <= 0 ) { in float128_to_int64()
4414 shortShift128Left( aSig0, aSig1, - shiftCount, &aSig0, &aSig1 ); in float128_to_int64()
4417 shift64ExtraRightJamming( aSig0, aSig1, shiftCount, &aSig0, &aSig1 ); in float128_to_int64()
4437 int32 aExp, shiftCount; in float128_to_int64_round_to_zero() local
4446 shiftCount = aExp - 0x402F; in float128_to_int64_round_to_zero()
4447 if ( 0 < shiftCount ) { in float128_to_int64_round_to_zero()
4462 z = ( aSig0<<shiftCount ) | ( aSig1>>( ( - shiftCount ) & 63 ) ); in float128_to_int64_round_to_zero()
4463 if ( (bits64) ( aSig1<<shiftCount ) ) { in float128_to_int64_round_to_zero()
4474 z = aSig0>>( - shiftCount ); in float128_to_int64_round_to_zero()
4476 || ( shiftCount && (bits64) ( aSig0<<( shiftCount & 63 ) ) ) ) { in float128_to_int64_round_to_zero()
4493 int32 aExp, shiftCount; in float128_to_uint64_round_to_zero() local
4502 shiftCount = aExp - 0x402F; in float128_to_uint64_round_to_zero()
4503 if ( 0 < shiftCount ) { in float128_to_uint64_round_to_zero()
4515 z = ( aSig0<<shiftCount ) | ( aSig1>>( ( - shiftCount ) & 63 ) ); in float128_to_uint64_round_to_zero()
4516 if ( (bits64) ( aSig1<<shiftCount ) ) { in float128_to_uint64_round_to_zero()
4527 z = aSig0>>( - shiftCount ); in float128_to_uint64_round_to_zero()
4528 if (aSig1 || ( shiftCount && (bits64) ( aSig0<<( shiftCount & 63 ) ) ) ) { in float128_to_uint64_round_to_zero()
5521 int16 aExp, shiftCount; in float64_to_uint32_round_to_zero() local
5543 shiftCount = 0x433 - aExp; in float64_to_uint32_round_to_zero()
5545 aSig >>= shiftCount; in float64_to_uint32_round_to_zero()
5547 if ( ( aSig<<shiftCount ) != savedASig ) { in float64_to_uint32_round_to_zero()
5567 int16 aExp, shiftCount; in float32_to_uint32_round_to_zero() local
5574 shiftCount = aExp - 0x9E; in float32_to_uint32_round_to_zero()
5580 if ( 0 < shiftCount ) { in float32_to_uint32_round_to_zero()
5589 z = aSig>>( - shiftCount ); in float32_to_uint32_round_to_zero()
5590 if ( aSig<<( shiftCount & 31 ) ) { in float32_to_uint32_round_to_zero()