/dports/math/reduce/Reduce-svn5758-src/libraries/SoftFloat-3a/source/ |
H A D | extF80M_to_ui64_r_minMag.c | 60 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 D | extF80M_to_i64_r_minMag.c | 60 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 D | ui64_to_f32.c | 44 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 D | s_normSubnormalF128Sig.c | 44 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 D | i64_to_f32.c | 47 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 D | extF80M_to_ui32_r_minMag.c | 60 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 D | s_mulAddF128.c | 143 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 D | f32_to_ui64_r_minMag.c | 49 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 D | f64_to_ui64.c | 50 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 D | s_normSubnormalF128SigM.c | 44 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 D | f64_to_i64.c | 50 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 D | f32_to_i64_r_minMag.c | 49 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 D | extF80M_to_i32_r_minMag.c | 60 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 D | s_normRoundPackMToExtF80M.c | 51 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 D | s_normRoundPackMToF128M.c | 47 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 D | f128_to_ui64_r_minMag.c | 47 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 D | f32_to_ui64.c | 52 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 D | f128_to_i64_r_minMag.c | 50 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 D | f64_to_ui64_r_minMag.c | 49 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 D | f64_to_i64_r_minMag.c | 50 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 D | ui64_to_f128M.c | 56 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 D | softfloat-round-pack.cc | 210 *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 D | softfloat-round-pack.cc | 210 *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 D | softfloat.c | 295 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 D | softfloat.c | 262 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 …]
|