Lines Matching refs:shiftCount
262 int8 shiftCount; in normalizeFloat32Subnormal() local
264 shiftCount = countLeadingZeros32( aSig ) - 8; in normalizeFloat32Subnormal()
265 *zSigPtr = aSig<<shiftCount; in normalizeFloat32Subnormal()
266 *zExpPtr = 1 - shiftCount; in normalizeFloat32Subnormal()
377 int8 shiftCount; in normalizeRoundAndPackFloat32() local
379 shiftCount = countLeadingZeros32( zSig ) - 1; in normalizeRoundAndPackFloat32()
380 return roundAndPackFloat32( zSign, zExp - shiftCount, zSig<<shiftCount ); in normalizeRoundAndPackFloat32()
431 int8 shiftCount; in normalizeFloat64Subnormal() local
433 shiftCount = countLeadingZeros64( aSig ) - 11; in normalizeFloat64Subnormal()
434 *zSigPtr = aSig<<shiftCount; in normalizeFloat64Subnormal()
435 *zExpPtr = 1 - shiftCount; in normalizeFloat64Subnormal()
549 int8 shiftCount; in normalizeRoundAndPackFloat64() local
551 shiftCount = countLeadingZeros64( zSig ) - 1; in normalizeRoundAndPackFloat64()
552 return roundAndPackFloat64( zSign, zExp - shiftCount, zSig<<shiftCount ); in normalizeRoundAndPackFloat64()
608 int8 shiftCount; in normalizeFloatx80Subnormal() local
610 shiftCount = countLeadingZeros64( aSig ); in normalizeFloatx80Subnormal()
611 *zSigPtr = aSig<<shiftCount; in normalizeFloatx80Subnormal()
612 *zExpPtr = 1 - shiftCount; in normalizeFloatx80Subnormal()
831 int8 shiftCount; in normalizeRoundAndPackFloatx80() local
838 shiftCount = countLeadingZeros64( zSig0 ); in normalizeRoundAndPackFloatx80()
839 shortShift128Left( zSig0, zSig1, shiftCount, &zSig0, &zSig1 ); in normalizeRoundAndPackFloatx80()
840 zExp -= shiftCount; in normalizeRoundAndPackFloatx80()
921 int8 shiftCount; in normalizeFloat128Subnormal() local
924 shiftCount = countLeadingZeros64( aSig1 ) - 15; in normalizeFloat128Subnormal()
925 if ( shiftCount < 0 ) { in normalizeFloat128Subnormal()
926 *zSig0Ptr = aSig1>>( - shiftCount ); in normalizeFloat128Subnormal()
927 *zSig1Ptr = aSig1<<( shiftCount & 63 ); in normalizeFloat128Subnormal()
930 *zSig0Ptr = aSig1<<shiftCount; in normalizeFloat128Subnormal()
933 *zExpPtr = - shiftCount - 63; in normalizeFloat128Subnormal()
936 shiftCount = countLeadingZeros64( aSig0 ) - 15; in normalizeFloat128Subnormal()
937 shortShift128Left( aSig0, aSig1, shiftCount, zSig0Ptr, zSig1Ptr ); in normalizeFloat128Subnormal()
938 *zExpPtr = 1 - shiftCount; in normalizeFloat128Subnormal()
1095 int8 shiftCount; in normalizeRoundAndPackFloat128() local
1103 shiftCount = countLeadingZeros64( zSig0 ) - 15; in normalizeRoundAndPackFloat128()
1104 if ( 0 <= shiftCount ) { in normalizeRoundAndPackFloat128()
1106 shortShift128Left( zSig0, zSig1, shiftCount, &zSig0, &zSig1 ); in normalizeRoundAndPackFloat128()
1110 zSig0, zSig1, 0, - shiftCount, &zSig0, &zSig1, &zSig2 ); in normalizeRoundAndPackFloat128()
1112 zExp -= shiftCount; in normalizeRoundAndPackFloat128()
1157 int8 shiftCount; in int32_to_float64() local
1163 shiftCount = countLeadingZeros32( absA ) + 21; in int32_to_float64()
1165 return packFloat64( zSign, 0x432 - shiftCount, zSig<<shiftCount ); in int32_to_float64()
1171 int8 shiftCount; in uint32_to_float64() local
1175 shiftCount = countLeadingZeros32( a ) + 21; in uint32_to_float64()
1176 return packFloat64( 0, 0x432 - shiftCount, zSig<<shiftCount ); in uint32_to_float64()
1194 int8 shiftCount; in int32_to_floatx80() local
1200 shiftCount = countLeadingZeros32( absA ) + 32; in int32_to_floatx80()
1202 return packFloatx80( zSign, 0x403E - shiftCount, zSig<<shiftCount ); in int32_to_floatx80()
1208 int8 shiftCount; in uint32_to_floatx80() local
1212 shiftCount = countLeadingZeros32( a ) + 32; in uint32_to_floatx80()
1213 return packFloatx80( 0, 0x403E - shiftCount, zSig<<shiftCount ); in uint32_to_floatx80()
1232 int8 shiftCount; in int32_to_float128() local
1238 shiftCount = countLeadingZeros32( absA ) + 17; in int32_to_float128()
1240 return packFloat128( zSign, 0x402E - shiftCount, zSig0<<shiftCount, 0 ); in int32_to_float128()
1246 int8 shiftCount; in uint32_to_float128() local
1250 shiftCount = countLeadingZeros32( a ) + 17; in uint32_to_float128()
1251 return packFloat128( 0, 0x402E - shiftCount, zSig0<<shiftCount, 0 ); in uint32_to_float128()
1269 int8 shiftCount; in int64_to_float32() local
1274 shiftCount = countLeadingZeros64( absA ) - 40; in int64_to_float32()
1275 if ( 0 <= shiftCount ) { in int64_to_float32()
1276 return packFloat32( zSign, 0x95 - shiftCount, absA<<shiftCount ); in int64_to_float32()
1279 shiftCount += 7; in int64_to_float32()
1280 if ( shiftCount < 0 ) { in int64_to_float32()
1281 shift64RightJamming( absA, - shiftCount, &absA ); in int64_to_float32()
1284 absA <<= shiftCount; in int64_to_float32()
1286 return roundAndPackFloat32( zSign, 0x9C - shiftCount, absA ); in int64_to_float32()
1325 int8 shiftCount; in int64_to_floatx80() local
1330 shiftCount = countLeadingZeros64( absA ); in int64_to_floatx80()
1331 return packFloatx80( zSign, 0x403E - shiftCount, absA<<shiftCount ); in int64_to_floatx80()
1352 int8 shiftCount; in int64_to_float128() local
1359 shiftCount = countLeadingZeros64( absA ) + 49; in int64_to_float128()
1360 zExp = 0x406E - shiftCount; in int64_to_float128()
1361 if ( 64 <= shiftCount ) { in int64_to_float128()
1364 shiftCount -= 64; in int64_to_float128()
1370 shortShift128Left( zSig0, zSig1, shiftCount, &zSig0, &zSig1 ); in int64_to_float128()
1392 int16 aExp, shiftCount; in float32_to_int32() local
1401 shiftCount = 0xAF - aExp; in float32_to_int32()
1404 if ( 0 < shiftCount ) shift64RightJamming( aSig64, shiftCount, &aSig64 ); in float32_to_int32()
1424 int16 aExp, shiftCount; in float32_to_int32_round_to_zero() local
1431 shiftCount = aExp - 0x9E; in float32_to_int32_round_to_zero()
1432 if ( 0 <= shiftCount ) { in float32_to_int32_round_to_zero()
1444 z = aSig>>( - shiftCount ); in float32_to_int32_round_to_zero()
1445 if ( (bits32) ( aSig<<( shiftCount & 31 ) ) ) { in float32_to_int32_round_to_zero()
1468 int16 aExp, shiftCount; in float32_to_int64() local
1475 shiftCount = 0xBE - aExp; in float32_to_int64()
1476 if ( shiftCount < 0 ) { in float32_to_int64()
1486 shift64ExtraRightJamming( aSig64, 0, shiftCount, &aSig64, &aSigExtra ); in float32_to_int64()
1505 int16 aExp, shiftCount; in float32_to_int64_round_to_zero() local
1513 shiftCount = aExp - 0xBE; in float32_to_int64_round_to_zero()
1514 if ( 0 <= shiftCount ) { in float32_to_int64_round_to_zero()
1529 z = aSig64>>( - shiftCount ); in float32_to_int64_round_to_zero()
1530 if ( (bits64) ( aSig64<<( shiftCount & 63 ) ) ) { in float32_to_int64_round_to_zero()
2340 int16 aExp, shiftCount; in float64_to_int32() local
2348 shiftCount = 0x42C - aExp; in float64_to_int32()
2349 if ( 0 < shiftCount ) shift64RightJamming( aSig, shiftCount, &aSig ); in float64_to_int32()
2369 int16 aExp, shiftCount; in float64_to_int32_round_to_zero() local
2385 shiftCount = 0x433 - aExp; in float64_to_int32_round_to_zero()
2387 aSig >>= shiftCount; in float64_to_int32_round_to_zero()
2395 if ( ( aSig<<shiftCount ) != savedASig ) { in float64_to_int32_round_to_zero()
2417 int16 aExp, shiftCount; in float64_to_int64() local
2424 shiftCount = 0x433 - aExp; in float64_to_int64()
2425 if ( shiftCount <= 0 ) { in float64_to_int64()
2437 aSig <<= - shiftCount; in float64_to_int64()
2440 shift64ExtraRightJamming( aSig, 0, shiftCount, &aSig, &aSigExtra ); in float64_to_int64()
2460 int16 aExp, shiftCount; in float64_to_int64_round_to_zero() local
2468 shiftCount = aExp - 0x433; in float64_to_int64_round_to_zero()
2469 if ( 0 <= shiftCount ) { in float64_to_int64_round_to_zero()
2482 z = aSig<<shiftCount; in float64_to_int64_round_to_zero()
2489 z = aSig>>( - shiftCount ); in float64_to_int64_round_to_zero()
2490 if ( (bits64) ( aSig<<( shiftCount & 63 ) ) ) { in float64_to_int64_round_to_zero()
3302 int32 aExp, shiftCount; in floatx80_to_int32() local
3309 shiftCount = 0x4037 - aExp; in floatx80_to_int32()
3310 if ( shiftCount <= 0 ) shiftCount = 1; in floatx80_to_int32()
3311 shift64RightJamming( aSig, shiftCount, &aSig ); in floatx80_to_int32()
3330 int32 aExp, shiftCount; in floatx80_to_int32_round_to_zero() local
3345 shiftCount = 0x403E - aExp; in floatx80_to_int32_round_to_zero()
3347 aSig >>= shiftCount; in floatx80_to_int32_round_to_zero()
3355 if ( ( aSig<<shiftCount ) != savedASig ) { in floatx80_to_int32_round_to_zero()
3376 int32 aExp, shiftCount; in floatx80_to_int64() local
3382 shiftCount = 0x403E - aExp; in floatx80_to_int64()
3383 if ( shiftCount <= 0 ) { in floatx80_to_int64()
3384 if ( shiftCount ) { in floatx80_to_int64()
3397 shift64ExtraRightJamming( aSig, 0, shiftCount, &aSig, &aSigExtra ); in floatx80_to_int64()
3417 int32 aExp, shiftCount; in floatx80_to_int64_round_to_zero() local
3424 shiftCount = aExp - 0x403E; in floatx80_to_int64_round_to_zero()
3425 if ( 0 <= shiftCount ) { in floatx80_to_int64_round_to_zero()
3439 z = aSig>>( - shiftCount ); in floatx80_to_int64_round_to_zero()
3440 if ( (bits64) ( aSig<<( shiftCount & 63 ) ) ) { in floatx80_to_int64_round_to_zero()
4320 int32 aExp, shiftCount; in float128_to_int32() local
4330 shiftCount = 0x4028 - aExp; in float128_to_int32()
4331 if ( 0 < shiftCount ) shift64RightJamming( aSig0, shiftCount, &aSig0 ); in float128_to_int32()
4350 int32 aExp, shiftCount; in float128_to_int32_round_to_zero() local
4368 shiftCount = 0x402F - aExp; in float128_to_int32_round_to_zero()
4370 aSig0 >>= shiftCount; in float128_to_int32_round_to_zero()
4378 if ( ( aSig0<<shiftCount ) != savedASig ) { in float128_to_int32_round_to_zero()
4399 int32 aExp, shiftCount; in float128_to_int64() local
4407 shiftCount = 0x402F - aExp; in float128_to_int64()
4408 if ( shiftCount <= 0 ) { in float128_to_int64()
4420 shortShift128Left( aSig0, aSig1, - shiftCount, &aSig0, &aSig1 ); in float128_to_int64()
4423 shift64ExtraRightJamming( aSig0, aSig1, shiftCount, &aSig0, &aSig1 ); in float128_to_int64()
4443 int32 aExp, shiftCount; in float128_to_int64_round_to_zero() local
4452 shiftCount = aExp - 0x402F; in float128_to_int64_round_to_zero()
4453 if ( 0 < shiftCount ) { in float128_to_int64_round_to_zero()
4468 z = ( aSig0<<shiftCount ) | ( aSig1>>( ( - shiftCount ) & 63 ) ); in float128_to_int64_round_to_zero()
4469 if ( (bits64) ( aSig1<<shiftCount ) ) { in float128_to_int64_round_to_zero()
4480 z = aSig0>>( - shiftCount ); in float128_to_int64_round_to_zero()
4482 || ( shiftCount && (bits64) ( aSig0<<( shiftCount & 63 ) ) ) ) { in float128_to_int64_round_to_zero()
4499 int32 aExp, shiftCount; in float128_to_uint64_round_to_zero() local
4508 shiftCount = aExp - 0x402F; in float128_to_uint64_round_to_zero()
4509 if ( 0 < shiftCount ) { in float128_to_uint64_round_to_zero()
4521 z = ( aSig0<<shiftCount ) | ( aSig1>>( ( - shiftCount ) & 63 ) ); in float128_to_uint64_round_to_zero()
4522 if ( (bits64) ( aSig1<<shiftCount ) ) { in float128_to_uint64_round_to_zero()
4533 z = aSig0>>( - shiftCount ); in float128_to_uint64_round_to_zero()
4534 if (aSig1 || ( shiftCount && (bits64) ( aSig0<<( shiftCount & 63 ) ) ) ) { in float128_to_uint64_round_to_zero()
5526 int16 aExp, shiftCount; in float64_to_uint32_round_to_zero() local
5548 shiftCount = 0x433 - aExp; in float64_to_uint32_round_to_zero()
5550 aSig >>= shiftCount; in float64_to_uint32_round_to_zero()
5552 if ( ( aSig<<shiftCount ) != savedASig ) { in float64_to_uint32_round_to_zero()
5572 int16 aExp, shiftCount; in float32_to_uint32_round_to_zero() local
5579 shiftCount = aExp - 0x9E; in float32_to_uint32_round_to_zero()
5585 if ( 0 < shiftCount ) { in float32_to_uint32_round_to_zero()
5594 z = aSig>>( - shiftCount ); in float32_to_uint32_round_to_zero()
5595 if ( aSig<<( shiftCount & 31 ) ) { in float32_to_uint32_round_to_zero()