Home
last modified time | relevance | path

Searched refs:sign (Results 1 – 25 of 142) sorted by relevance

123456

/optee_os-3.20.0/lib/libutils/isoc/arch/arm/softfloat/source/
A Di32_to_f32.c46 bool sign; in i32_to_f32() local
50 sign = (a < 0); in i32_to_f32()
52 uZ.ui = sign ? packToF32UI( 1, 0x9E, 0 ) : 0; in i32_to_f32()
55 absA = sign ? -(uint_fast32_t) a : (uint_fast32_t) a; in i32_to_f32()
56 return softfloat_normRoundPackToF32( sign, 0x9C, absA ); in i32_to_f32()
A Di64_to_f64.c46 bool sign; in i64_to_f64() local
50 sign = (a < 0); in i64_to_f64()
52 uZ.ui = sign ? packToF64UI( 1, 0x43E, 0 ) : 0; in i64_to_f64()
55 absA = sign ? -(uint_fast64_t) a : (uint_fast64_t) a; in i64_to_f64()
56 return softfloat_normRoundPackToF64( sign, 0x43C, absA ); in i64_to_f64()
A Di64_to_f32.c46 bool sign; in i64_to_f32() local
52 sign = (a < 0); in i64_to_f32()
53 absA = sign ? -(uint_fast64_t) a : (uint_fast64_t) a; in i64_to_f32()
58 sign, 0x95 - shiftCount, (uint_fast32_t) absA<<shiftCount ) in i64_to_f32()
67 return softfloat_roundPackToF32( sign, 0x9C - shiftCount, sig ); in i64_to_f32()
A Df64_to_f32.c49 bool sign; in f64_to_f32() local
58 sign = signF64UI( uiA ); in f64_to_f32()
66 uiZ = packToF32UI( sign, 0xFF, 0 ); in f64_to_f32()
72 uiZ = packToF32UI( sign, 0, 0 ); in f64_to_f32()
75 return softfloat_roundPackToF32( sign, exp - 0x381, sig32 | 0x40000000 ); in f64_to_f32()
A Ds_roundPackToI32.c46 bool sign, uint_fast64_t sig, uint_fast8_t roundingMode, bool exact ) in softfloat_roundPackToI32() argument
59 == (sign ? softfloat_round_min : softfloat_round_max)) in softfloat_roundPackToI32()
68 uZ.ui = sign ? -sig32 : sig32; in softfloat_roundPackToI32()
70 if ( z && ((z < 0) ^ sign) ) goto invalid; in softfloat_roundPackToI32()
77 return sign ? -0x7FFFFFFF - 1 : 0x7FFFFFFF; in softfloat_roundPackToI32()
A Ds_roundPackToI64.c46 bool sign, in softfloat_roundPackToI64() argument
62 == (sign ? softfloat_round_min : softfloat_round_max)) in softfloat_roundPackToI64()
73 uZ.ui = sign ? -sig : sig; in softfloat_roundPackToI64()
75 if ( z && ((z < 0) ^ sign) ) goto invalid; in softfloat_roundPackToI64()
83 sign ? -INT64_C( 0x7FFFFFFFFFFFFFFF ) - 1 in softfloat_roundPackToI64()
A Df64_to_i32_r_minMag.c51 bool sign; in f64_to_i32_r_minMag() local
65 sign = signF64UI( uiA ); in f64_to_i32_r_minMag()
68 sign && (exp == 0x41E) && (sig < UINT64_C( 0x0000000000200000 )) in f64_to_i32_r_minMag()
75 if ( ! sign || ((exp == 0x7FF) && sig) ) return 0x7FFFFFFF; in f64_to_i32_r_minMag()
84 return sign ? -absZ : absZ; in f64_to_i32_r_minMag()
A Di32_to_f64.c47 bool sign; in i32_to_f64() local
55 sign = (a < 0); in i32_to_f64()
56 absA = sign ? -(uint_fast32_t) a : (uint_fast32_t) a; in i32_to_f64()
60 sign, 0x432 - shiftCount, (uint_fast64_t) absA<<shiftCount ); in i32_to_f64()
A Df64_to_i64.c48 bool sign; in f64_to_i64() local
60 sign = signF64UI( uiA ); in f64_to_i64()
70 ! sign in f64_to_i64()
83 sign, sigExtra.v, sigExtra.extra, roundingMode, exact ); in f64_to_i64()
90 ! sign in f64_to_i64()
104 return softfloat_roundPackMToI64( sign, extSig, roundingMode, exact ); in f64_to_i64()
A Df32_to_f64.c49 bool sign; in f32_to_f64() local
59 sign = signF32UI( uiA ); in f32_to_f64()
67 uiZ = packToF64UI( sign, 0x7FF, 0 ); in f32_to_f64()
73 uiZ = packToF64UI( sign, 0, 0 ); in f32_to_f64()
80 uiZ = packToF64UI( sign, exp + 0x380, (uint_fast64_t) sig<<29 ); in f32_to_f64()
A Ds_roundPackMToI64.c46 bool sign, uint32_t *extSigPtr, uint_fast8_t roundingMode, bool exact ) in softfloat_roundPackMToI64() argument
61 == (sign ? softfloat_round_min : softfloat_round_max)) in softfloat_roundPackMToI64()
72 uZ.ui = sign ? -sig : sig; in softfloat_roundPackMToI64()
74 if ( z && ((z < 0) ^ sign) ) goto invalid; in softfloat_roundPackMToI64()
82 sign ? -INT64_C( 0x7FFFFFFFFFFFFFFF ) - 1 in softfloat_roundPackMToI64()
A DextF80M_to_i32.c63 bool sign; in extF80M_to_i32() local
72 sign = signExtF80UI64( uiA64 ); in extF80M_to_i32()
77 if ( (exp == 0x7FFF) && (sig & UINT64_C( 0x7FFFFFFFFFFFFFFF )) ) sign = 0; in extF80M_to_i32()
89 return softfloat_roundPackToI32( sign, sig, roundingMode, exact ); in extF80M_to_i32()
94 return sign ? -0x7FFFFFFF - 1 : 0x7FFFFFFF; in extF80M_to_i32()
A Di32_to_f128.c46 bool sign; in i32_to_f128() local
53 sign = (a < 0); in i32_to_f128()
54 absA = sign ? -(uint_fast32_t) a : (uint_fast32_t) a; in i32_to_f128()
58 sign, 0x402E - shiftCount, (uint_fast64_t) absA<<shiftCount ); in i32_to_f128()
A Df128M_to_extF80M.c61 bool sign; in f128M_to_extF80M() local
73 sign = signF128UI96( uiA96 ); in f128M_to_extF80M()
83 zSPtr->signExp = packToExtF80UI64( sign, 0x7FFF ); in f128M_to_extF80M()
91 zSPtr->signExp = packToExtF80UI64( sign, 0 ); in f128M_to_extF80M()
97 sign, exp, &sig[indexMultiwordHi( 4, 3 )], 80, zSPtr ); in f128M_to_extF80M()
A Df128_to_f32.c49 bool sign; in f128_to_f32() local
59 sign = signF128UI64( uiA64 ); in f128_to_f32()
67 uiZ = packToF32UI( sign, 0xFF, 0 ); in f128_to_f32()
73 uiZ = packToF32UI( sign, 0, 0 ); in f128_to_f32()
80 return softfloat_roundPackToF32( sign, exp, sig32 | 0x40000000 ); in f128_to_f32()
A Df128_to_i32_r_minMag.c51 bool sign; in f128_to_i32_r_minMag() local
66 sign = signF128UI64( uiA64 ); in f128_to_i32_r_minMag()
69 sign && (shiftCount == 17) in f128_to_i32_r_minMag()
77 if ( ! sign || ((exp == 0x7FFF) && sig64) ) return 0x7FFFFFFF; in f128_to_i32_r_minMag()
88 return sign ? -absZ : absZ; in f128_to_i32_r_minMag()
A DextF80M_to_f64.c60 bool sign; in extF80M_to_f64() local
71 sign = signExtF80UI64( uiA64 ); in extF80M_to_f64()
81 uiZ = packToF64UI( sign, 0x7FF, 0 ); in extF80M_to_f64()
89 uiZ = packToF64UI( sign, 0, 0 ); in extF80M_to_f64()
103 sign, exp, sig | UINT64_C( 0x4000000000000000 ) ); in extF80M_to_f64()
A DextF80M_to_f32.c60 bool sign; in extF80M_to_f32() local
71 sign = signExtF80UI64( uiA64 ); in extF80M_to_f32()
81 uiZ = packToF32UI( sign, 0xFF, 0 ); in extF80M_to_f32()
89 uiZ = packToF32UI( sign, 0, 0 ); in extF80M_to_f32()
101 return softfloat_roundPackToF32( sign, exp, sig32 | 0x40000000 ); in extF80M_to_f32()
A DextF80_to_f32.c50 bool sign; in extF80_to_f32() local
60 sign = signExtF80UI64( uiA64 ); in extF80_to_f32()
68 uiZ = packToF32UI( sign, 0xFF, 0 ); in extF80_to_f32()
74 uiZ = packToF32UI( sign, 0, 0 ); in extF80_to_f32()
81 return softfloat_roundPackToF32( sign, exp, sig32 ); in extF80_to_f32()
A DextF80_to_f64.c50 bool sign; in extF80_to_f64() local
60 sign = signExtF80UI64( uiA64 ); in extF80_to_f64()
64 uiZ = packToF64UI( sign, 0, 0 ); in extF80_to_f64()
72 uiZ = packToF64UI( sign, 0x7FF, 0 ); in extF80_to_f64()
81 return softfloat_roundPackToF64( sign, exp, sig ); in extF80_to_f64()
A Di32_to_extF80.c48 bool sign; in i32_to_extF80() local
55 sign = (a < 0); in i32_to_extF80()
56 absA = sign ? -(uint_fast32_t) a : (uint_fast32_t) a; in i32_to_extF80()
58 uiZ64 = packToExtF80UI64( sign, 0x401E - shiftCount ); in i32_to_extF80()
A Di64_to_extF80.c48 bool sign; in i64_to_extF80() local
55 sign = (a < 0); in i64_to_extF80()
56 absA = sign ? -(uint_fast64_t) a : (uint_fast64_t) a; in i64_to_extF80()
58 uiZ64 = packToExtF80UI64( sign, 0x403E - shiftCount ); in i64_to_extF80()
A Ds_roundPackToF128.c46 bool sign, in softfloat_roundPackToF128() argument
66 == (sign ? softfloat_round_min : softfloat_round_max)) in softfloat_roundPackToF128()
98 == (sign ? softfloat_round_min : softfloat_round_max)) in softfloat_roundPackToF128()
118 == (sign ? softfloat_round_min : softfloat_round_max)) in softfloat_roundPackToF128()
120 uiZ64 = packToF128UI64( sign, 0x7FFF, 0 ); in softfloat_roundPackToF128()
125 sign, 0x7FFE, UINT64_C( 0x0000FFFFFFFFFFFF ) ); in softfloat_roundPackToF128()
143 uiZ64 = packToF128UI64( sign, exp, sig64 ); in softfloat_roundPackToF128()
A Di64_to_f128M.c58 bool sign; in i64_to_f128M() local
69 sign = (a < 0); in i64_to_f128M()
70 absA = sign ? -(uint64_t) a : (uint64_t) a; in i64_to_f128M()
80 sign, 0x404E - shiftCount, ptr[indexWordHi( 3 )] ); in i64_to_f128M()
84 uiZ96 = packToF128UI96( sign, 0x404E - shiftCount, absA>>32 ); in i64_to_f128M()
A Df32_to_f128.c49 bool sign; in f32_to_f128() local
59 sign = signF32UI( uiA ); in f32_to_f128()
67 uiZ.v64 = packToF128UI64( sign, 0x7FFF, 0 ); in f32_to_f128()
74 uiZ.v64 = packToF128UI64( sign, 0, 0 ); in f32_to_f128()
82 uiZ.v64 = packToF128UI64( sign, exp + 0x3F80, (uint_fast64_t) sig<<25 ); in f32_to_f128()

Completed in 43 milliseconds

123456