Home
last modified time | relevance | path

Searched refs:shiftCount (Results 1 – 25 of 366) sorted by relevance

12345678910>>...15

/dports/math/reduce/Reduce-svn5758-src/libraries/SoftFloat-3a/source/
H A DextF80M_to_ui64_r_minMag.c60 int32_t shiftCount; in extF80M_to_ui64_r_minMag() local
73 shiftCount = 0x403E - exp; in extF80M_to_ui64_r_minMag()
74 if ( 64 <= shiftCount ) { in extF80M_to_ui64_r_minMag()
79 if ( shiftCount < 0 ) { in extF80M_to_ui64_r_minMag()
80 if ( sign || (shiftCount <= -63) ) goto invalid; in extF80M_to_ui64_r_minMag()
81 shiftCount = -shiftCount; in extF80M_to_ui64_r_minMag()
82 z = sig<<shiftCount; in extF80M_to_ui64_r_minMag()
83 if ( z>>shiftCount != sig ) goto invalid; in extF80M_to_ui64_r_minMag()
86 if ( shiftCount ) z >>= shiftCount; in extF80M_to_ui64_r_minMag()
88 if ( exact && shiftCount && (z<<shiftCount != sig) ) { in extF80M_to_ui64_r_minMag()
H A DextF80M_to_i64_r_minMag.c60 int32_t shiftCount; in extF80M_to_i64_r_minMag() local
75 shiftCount = 0x403E - exp; in extF80M_to_i64_r_minMag()
76 if ( 64 <= shiftCount ) { in extF80M_to_i64_r_minMag()
81 if ( shiftCount < 0 ) { in extF80M_to_i64_r_minMag()
82 if ( shiftCount <= -63 ) goto invalid; in extF80M_to_i64_r_minMag()
83 shiftCount = -shiftCount; in extF80M_to_i64_r_minMag()
84 absZ = sig<<shiftCount; in extF80M_to_i64_r_minMag()
85 if ( absZ>>shiftCount != sig ) goto invalid; in extF80M_to_i64_r_minMag()
88 if ( shiftCount ) absZ >>= shiftCount; in extF80M_to_i64_r_minMag()
89 if ( exact && shiftCount ) { in extF80M_to_i64_r_minMag()
[all …]
H A Dui64_to_f32.c44 int_fast8_t shiftCount; in ui64_to_f32() local
48 shiftCount = softfloat_countLeadingZeros64( a ) - 40; in ui64_to_f32()
49 if ( 0 <= shiftCount ) { in ui64_to_f32()
52 0, 0x95 - shiftCount, (uint_fast32_t) a<<shiftCount ) in ui64_to_f32()
56 shiftCount += 7; in ui64_to_f32()
58 (shiftCount < 0) ? softfloat_shortShiftRightJam64( a, -shiftCount ) in ui64_to_f32()
59 : (uint_fast32_t) a<<shiftCount; in ui64_to_f32()
60 return softfloat_roundPackToF32( 0, 0x9C - shiftCount, sig ); in ui64_to_f32()
H A Ds_normSubnormalF128Sig.c44 int_fast8_t shiftCount; in softfloat_normSubnormalF128Sig() local
48 shiftCount = softfloat_countLeadingZeros64( sig0 ) - 15; in softfloat_normSubnormalF128Sig()
49 z.exp = -63 - shiftCount; in softfloat_normSubnormalF128Sig()
50 if ( shiftCount < 0 ) { in softfloat_normSubnormalF128Sig()
51 z.sig.v64 = sig0>>-shiftCount; in softfloat_normSubnormalF128Sig()
52 z.sig.v0 = sig0<<(shiftCount & 63); in softfloat_normSubnormalF128Sig()
54 z.sig.v64 = sig0<<shiftCount; in softfloat_normSubnormalF128Sig()
58 shiftCount = softfloat_countLeadingZeros64( sig64 ) - 15; in softfloat_normSubnormalF128Sig()
59 z.exp = 1 - shiftCount; in softfloat_normSubnormalF128Sig()
60 z.sig = softfloat_shortShiftLeft128( sig64, sig0, shiftCount ); in softfloat_normSubnormalF128Sig()
H A Di64_to_f32.c47 int_fast8_t shiftCount; in i64_to_f32() local
53 shiftCount = softfloat_countLeadingZeros64( absA ) - 40; in i64_to_f32()
54 if ( 0 <= shiftCount ) { in i64_to_f32()
57 sign, 0x95 - shiftCount, (uint_fast32_t) absA<<shiftCount ) in i64_to_f32()
61 shiftCount += 7; in i64_to_f32()
63 (shiftCount < 0) in i64_to_f32()
64 ? softfloat_shortShiftRightJam64( absA, -shiftCount ) in i64_to_f32()
65 : (uint_fast32_t) absA<<shiftCount; in i64_to_f32()
66 return softfloat_roundPackToF32( sign, 0x9C - shiftCount, sig ); in i64_to_f32()
H A DextF80M_to_ui32_r_minMag.c60 int32_t shiftCount; in extF80M_to_ui32_r_minMag() local
74 shiftCount = 0x403E - exp; in extF80M_to_ui32_r_minMag()
75 if ( 64 <= shiftCount ) { in extF80M_to_ui32_r_minMag()
80 if ( shiftCount < 0 ) { in extF80M_to_ui32_r_minMag()
81 if ( sign || sig>>32 || (shiftCount <= -31) ) goto invalid; in extF80M_to_ui32_r_minMag()
82 shiftedSig = (uint64_t) (uint32_t) sig<<-shiftCount; in extF80M_to_ui32_r_minMag()
87 if ( shiftCount ) shiftedSig >>= shiftCount; in extF80M_to_ui32_r_minMag()
91 if ( exact && shiftCount && ((uint64_t) z<<shiftCount != sig) ) { in extF80M_to_ui32_r_minMag()
H A Ds_mulAddF128.c143 shiftCount = 0; in softfloat_mulAddF128()
146 shiftCount = -1; in softfloat_mulAddF128()
150 shiftCount += 8; in softfloat_mulAddF128()
166 if ( shiftCount ) { in softfloat_mulAddF128()
172 if ( ! shiftCount ) { in softfloat_mulAddF128()
200 shiftCount = 8; in softfloat_mulAddF128()
213 shiftCount = 9; in softfloat_mulAddF128()
292 expZ += 7 - shiftCount; in softfloat_mulAddF128()
293 shiftCount = 15 - shiftCount; in softfloat_mulAddF128()
295 if ( shiftCount ) { in softfloat_mulAddF128()
[all …]
H A Df32_to_ui64_r_minMag.c49 int_fast16_t shiftCount; in f32_to_ui64_r_minMag() local
56 shiftCount = 0xBE - exp; in f32_to_ui64_r_minMag()
57 if ( 64 <= shiftCount ) { in f32_to_ui64_r_minMag()
63 if ( signF32UI( uiA ) || (shiftCount < 0) ) goto invalid; in f32_to_ui64_r_minMag()
66 z = sig64>>shiftCount; in f32_to_ui64_r_minMag()
67 shiftCount = 40 - shiftCount; in f32_to_ui64_r_minMag()
68 if ( exact && (shiftCount < 0) && (uint32_t) (sig<<(shiftCount & 31)) ) { in f32_to_ui64_r_minMag()
H A Df64_to_ui64.c50 int_fast16_t shiftCount; in f64_to_ui64() local
63 shiftCount = 0x433 - exp; in f64_to_ui64()
65 if ( shiftCount <= 0 ) { in f64_to_ui64()
66 if ( shiftCount < -11 ) { in f64_to_ui64()
70 sigExtra.v = sig<<-shiftCount; in f64_to_ui64()
73 sigExtra = softfloat_shiftRightJam64Extra( sig, 0, shiftCount ); in f64_to_ui64()
80 if ( shiftCount <= 0 ) { in f64_to_ui64()
81 if ( shiftCount < -11 ) { in f64_to_ui64()
85 sig <<= -shiftCount; in f64_to_ui64()
91 softfloat_shiftRightJam96M( extSig, shiftCount, extSig ); in f64_to_ui64()
H A Ds_normSubnormalF128SigM.c44 int_fast16_t shiftCount; in softfloat_normSubnormalF128SigM() local
48 shiftCount = 0; in softfloat_normSubnormalF128SigM()
52 shiftCount += 32; in softfloat_normSubnormalF128SigM()
53 if ( 128 <= shiftCount ) return 1; in softfloat_normSubnormalF128SigM()
56 shiftCount += softfloat_countLeadingZeros32( wordSig ) - 15; in softfloat_normSubnormalF128SigM()
57 if ( shiftCount ) softfloat_shiftLeft128M( sigPtr, shiftCount, sigPtr ); in softfloat_normSubnormalF128SigM()
58 return 1 - shiftCount; in softfloat_normSubnormalF128SigM()
H A Df64_to_i64.c50 int_fast16_t shiftCount; in f64_to_i64() local
63 shiftCount = 0x433 - exp; in f64_to_i64()
65 if ( shiftCount <= 0 ) { in f64_to_i64()
66 if ( shiftCount < -11 ) { in f64_to_i64()
75 sigExtra.v = sig<<-shiftCount; in f64_to_i64()
78 sigExtra = softfloat_shiftRightJam64Extra( sig, 0, shiftCount ); in f64_to_i64()
85 if ( shiftCount <= 0 ) { in f64_to_i64()
86 if ( shiftCount < -11 ) { in f64_to_i64()
95 sig <<= -shiftCount; in f64_to_i64()
101 softfloat_shiftRightJam96M( extSig, shiftCount, extSig ); in f64_to_i64()
H A Df32_to_i64_r_minMag.c49 int_fast16_t shiftCount; in f32_to_i64_r_minMag() local
58 shiftCount = 0xBE - exp; in f32_to_i64_r_minMag()
59 if ( 64 <= shiftCount ) { in f32_to_i64_r_minMag()
66 if ( shiftCount <= 0 ) { in f32_to_i64_r_minMag()
77 absZ = sig64>>shiftCount; in f32_to_i64_r_minMag()
78 shiftCount = 40 - shiftCount; in f32_to_i64_r_minMag()
79 if ( exact && (shiftCount < 0) && (uint32_t) (sig<<(shiftCount & 31)) ) { in f32_to_i64_r_minMag()
H A DextF80M_to_i32_r_minMag.c60 int32_t shiftCount; in extF80M_to_i32_r_minMag() local
76 shiftCount = 0x403E - exp; in extF80M_to_i32_r_minMag()
77 if ( 64 <= shiftCount ) { in extF80M_to_i32_r_minMag()
82 if ( shiftCount < 0 ) { in extF80M_to_i32_r_minMag()
83 if ( sig>>32 || (shiftCount <= -31) ) goto invalid; in extF80M_to_i32_r_minMag()
84 shiftedSig = (uint64_t) (uint32_t) sig<<-shiftCount; in extF80M_to_i32_r_minMag()
89 if ( shiftCount ) shiftedSig >>= shiftCount; in extF80M_to_i32_r_minMag()
92 if ( exact && shiftCount ) { in extF80M_to_i32_r_minMag()
93 raiseInexact = ((uint64_t) absZ<<shiftCount != sig); in extF80M_to_i32_r_minMag()
H A Ds_normRoundPackMToExtF80M.c51 int_fast16_t shiftCount; in softfloat_normRoundPackMToExtF80M() local
54 shiftCount = 0; in softfloat_normRoundPackMToExtF80M()
57 shiftCount = 32; in softfloat_normRoundPackMToExtF80M()
60 shiftCount = 64; in softfloat_normRoundPackMToExtF80M()
69 shiftCount += softfloat_countLeadingZeros32( wordSig ); in softfloat_normRoundPackMToExtF80M()
70 if ( shiftCount ) { in softfloat_normRoundPackMToExtF80M()
71 exp -= shiftCount; in softfloat_normRoundPackMToExtF80M()
72 softfloat_shiftLeft96M( extSigPtr, shiftCount, extSigPtr ); in softfloat_normRoundPackMToExtF80M()
H A Ds_normRoundPackMToF128M.c47 int_fast16_t shiftCount; in softfloat_normRoundPackMToF128M() local
51 shiftCount = 0; in softfloat_normRoundPackMToF128M()
55 shiftCount += 32; in softfloat_normRoundPackMToF128M()
56 if ( 160 <= shiftCount ) { in softfloat_normRoundPackMToF128M()
65 shiftCount += softfloat_countLeadingZeros32( wordSig ) - 15; in softfloat_normRoundPackMToF128M()
66 if ( shiftCount ) { in softfloat_normRoundPackMToF128M()
67 exp -= shiftCount; in softfloat_normRoundPackMToF128M()
68 softfloat_shiftLeft160M( extSigPtr, shiftCount, extSigPtr ); in softfloat_normRoundPackMToF128M()
H A Df128_to_ui64_r_minMag.c47 int_fast32_t exp, shiftCount; in f128_to_ui64_r_minMag() local
56 shiftCount = 0x402F - exp; in f128_to_ui64_r_minMag()
57 if ( shiftCount < 0 ) { in f128_to_ui64_r_minMag()
58 if ( signF128UI64( uiA64 ) || (shiftCount < -15) ) goto invalid; in f128_to_ui64_r_minMag()
61 negShiftCount = -shiftCount; in f128_to_ui64_r_minMag()
62 z = sig64<<negShiftCount | sig0>>(shiftCount & 63); in f128_to_ui64_r_minMag()
69 if ( 49 <= shiftCount ) { in f128_to_ui64_r_minMag()
77 z = sig64>>shiftCount; in f128_to_ui64_r_minMag()
78 if ( exact && (sig0 || (z<<shiftCount != sig64)) ) { in f128_to_ui64_r_minMag()
H A Df32_to_ui64.c52 int_fast16_t shiftCount; in f32_to_ui64() local
61 shiftCount = 0xBE - exp; in f32_to_ui64()
62 if ( shiftCount < 0 ) { in f32_to_ui64()
69 if ( shiftCount ) { in f32_to_ui64()
70 sig64Extra = softfloat_shiftRightJam64Extra( sig64, 0, shiftCount ); in f32_to_ui64()
88 int_fast16_t shiftCount; in f32_to_ui64() local
96 shiftCount = 0xBE - exp; in f32_to_ui64()
97 if ( shiftCount < 0 ) { in f32_to_ui64()
105 if ( shiftCount ) softfloat_shiftRightJam96M( extSig, shiftCount, extSig ); in f32_to_ui64()
H A Df128_to_i64_r_minMag.c50 int_fast32_t shiftCount; in f128_to_i64_r_minMag() local
61 shiftCount = 0x402F - exp; in f128_to_i64_r_minMag()
62 if ( shiftCount < 0 ) { in f128_to_i64_r_minMag()
63 if ( shiftCount < -14 ) { in f128_to_i64_r_minMag()
80 negShiftCount = -shiftCount; in f128_to_i64_r_minMag()
81 absZ = sig64<<negShiftCount | sig0>>(shiftCount & 63); in f128_to_i64_r_minMag()
86 if ( 49 <= shiftCount ) { in f128_to_i64_r_minMag()
93 absZ = sig64>>shiftCount; in f128_to_i64_r_minMag()
94 if ( exact && (sig0 || (absZ<<shiftCount != sig64)) ) { in f128_to_i64_r_minMag()
H A Df64_to_ui64_r_minMag.c49 int_fast16_t shiftCount; in f64_to_ui64_r_minMag() local
56 shiftCount = 0x433 - exp; in f64_to_ui64_r_minMag()
57 if ( 53 <= shiftCount ) { in f64_to_ui64_r_minMag()
64 if ( shiftCount <= 0 ) { in f64_to_ui64_r_minMag()
65 if ( shiftCount < -11 ) goto invalid; in f64_to_ui64_r_minMag()
66 z = (sig | UINT64_C( 0x0010000000000000 ))<<-shiftCount; in f64_to_ui64_r_minMag()
69 z = sig>>shiftCount; in f64_to_ui64_r_minMag()
70 if ( exact && (uint64_t) (sig<<(-shiftCount & 63)) ) { in f64_to_ui64_r_minMag()
H A Df64_to_i64_r_minMag.c50 int_fast16_t shiftCount; in f64_to_i64_r_minMag() local
58 shiftCount = 0x433 - exp; in f64_to_i64_r_minMag()
59 if ( shiftCount <= 0 ) { in f64_to_i64_r_minMag()
60 if ( shiftCount < -10 ) { in f64_to_i64_r_minMag()
70 absZ = sig<<-shiftCount; in f64_to_i64_r_minMag()
72 if ( 53 <= shiftCount ) { in f64_to_i64_r_minMag()
79 absZ = sig>>shiftCount; in f64_to_i64_r_minMag()
80 if ( exact && (absZ<<shiftCount != sig) ) { in f64_to_i64_r_minMag()
H A Dui64_to_f128M.c56 uint_fast8_t shiftCount; in ui64_to_f128M() local
65 shiftCount = softfloat_countLeadingZeros64( a ) + 17; in ui64_to_f128M()
66 if ( shiftCount < 32 ) { in ui64_to_f128M()
71 softfloat_shortShiftLeft96M( ptr, shiftCount, ptr ); in ui64_to_f128M()
74 0, 0x404E - shiftCount, ptr[indexWordHi( 3 )] ); in ui64_to_f128M()
77 a <<= shiftCount - 32; in ui64_to_f128M()
78 uiZ96 = packToF128UI96( 0, 0x404E - shiftCount, a>>32 ); in ui64_to_f128M()
/dports/emulators/bochs/bochs-2.7/cpu/fpu/
H A Dsoftfloat-round-pack.cc210 *zExpPtr = 1 - shiftCount; in normalizeFloat16Subnormal()
304 *zExpPtr = 1 - shiftCount; in normalizeFloat32Subnormal()
407 return roundAndPackFloat32(zSign, zExp - shiftCount, zSig<<shiftCount, status); in normalizeRoundAndPackFloat32()
421 *zExpPtr = 1 - shiftCount; in normalizeFloat64Subnormal()
523 return roundAndPackFloat64(zSign, zExp - shiftCount, zSig<<shiftCount, status); in normalizeRoundAndPackFloat64()
539 *zExpPtr = 1 - shiftCount; in normalizeFloatx80Subnormal()
761 zExp -= shiftCount; in normalizeRoundAndPackFloatx80()
783 int shiftCount; in normalizeFloat128Subnormal() local
787 if (shiftCount < 0) { in normalizeFloat128Subnormal()
884 if (0 <= shiftCount) { in normalizeRoundAndPackFloat128()
[all …]
/dports/emulators/fs-uae/fs-uae-3.1.35/softfloat/
H A Dsoftfloat-round-pack.cc210 *zExpPtr = 1 - shiftCount; in normalizeFloat16Subnormal()
304 *zExpPtr = 1 - shiftCount; in normalizeFloat32Subnormal()
407 return roundAndPackFloat32(zSign, zExp - shiftCount, zSig<<shiftCount, status); in normalizeRoundAndPackFloat32()
421 *zExpPtr = 1 - shiftCount; in normalizeFloat64Subnormal()
523 return roundAndPackFloat64(zSign, zExp - shiftCount, zSig<<shiftCount, status); in normalizeRoundAndPackFloat64()
539 *zExpPtr = 1 - shiftCount; in normalizeFloatx80Subnormal()
761 zExp -= shiftCount; in normalizeRoundAndPackFloatx80()
783 int shiftCount; in normalizeFloat128Subnormal() local
787 if (shiftCount < 0) { in normalizeFloat128Subnormal()
884 if (0 <= shiftCount) { in normalizeRoundAndPackFloat128()
[all …]
/dports/emulators/hercules/hercules-3.13/softfloat/
H A Dsoftfloat.c295 int8 shiftCount; in normalizeFloat32Subnormal() local
407 int8 shiftCount; in normalizeRoundAndPackFloat32() local
460 int8 shiftCount; in normalizeFloat64Subnormal() local
572 int8 shiftCount; in normalizeRoundAndPackFloat64() local
630 int8 shiftCount; in normalizeFloatx80Subnormal() local
850 int8 shiftCount; in normalizeRoundAndPackFloatx80() local
935 int8 shiftCount; in normalizeFloat128Subnormal() local
1106 int8 shiftCount; in normalizeRoundAndPackFloat128() local
1173 return packFloat64( 0, 0x432 - shiftCount, zSig<<shiftCount ); in uint32_to_float64()
1281 return packFloat32( 0, 0x95 - shiftCount, a<<shiftCount ); in uint64_to_float32()
[all …]
/dports/misc/rump/buildrump.sh-b914579/src/lib/libc/softfloat/bits64/
H A Dsoftfloat.c262 int8 shiftCount; in normalizeFloat32Subnormal() local
377 int8 shiftCount; in normalizeRoundAndPackFloat32() local
431 int8 shiftCount; in normalizeFloat64Subnormal() local
549 int8 shiftCount; in normalizeRoundAndPackFloat64() local
608 int8 shiftCount; in normalizeFloatx80Subnormal() local
831 int8 shiftCount; in normalizeRoundAndPackFloatx80() local
921 int8 shiftCount; in normalizeFloat128Subnormal() local
1095 int8 shiftCount; in normalizeRoundAndPackFloat128() local
1176 return packFloat64( 0, 0x432 - shiftCount, zSig<<shiftCount ); in uint32_to_float64()
1213 return packFloatx80( 0, 0x403E - shiftCount, zSig<<shiftCount ); in uint32_to_floatx80()
[all …]

12345678910>>...15