Home
last modified time | relevance | path

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

12345678910>>...12

/optee_os/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 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 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 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_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 Df128M_to_i64_r_minMag.c59 bool sign; in f128M_to_i64_r_minMag() local
67 sign = signF128UI96( uiA96 ); in f128M_to_i64_r_minMag()
80 if ( uiZ>>63 && (! sign || (uiZ != UINT64_C( 0x8000000000000000 ))) ) { in f128M_to_i64_r_minMag()
96 if ( uiZ || ! sign ) goto invalid; in f128M_to_i64_r_minMag()
100 if ( sign ) uiZ = -uiZ; in f128M_to_i64_r_minMag()
106 sign && ! softfloat_isNaNF128M( aWPtr ) in f128M_to_i64_r_minMag()
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 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 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 Df32_to_ui64.c50 bool sign; in f32_to_ui64() local
59 sign = signF32UI( uiA ); in f32_to_ui64()
76 softfloat_roundPackToUI64( sign, sig64, extra, roundingMode, exact ); in f32_to_ui64()
86 bool sign; in f32_to_ui64() local
94 sign = signF32UI( uiA ); in f32_to_ui64()
107 return softfloat_roundPackMToUI64( sign, extSig, roundingMode, exact ); in f32_to_ui64()
A Ds_roundPackMToF128M.c46 bool sign, int32_t exp, uint32_t *extSigPtr, uint32_t *zWPtr ) in softfloat_roundPackMToF128M() argument
63 == (sign ? softfloat_round_min : softfloat_round_max)) in softfloat_roundPackMToF128M()
89 == (sign ? softfloat_round_min : softfloat_round_max)) in softfloat_roundPackMToF128M()
105 == (sign ? softfloat_round_min : softfloat_round_max)) in softfloat_roundPackMToF128M()
107 ui = packToF128UI96( sign, 0x7FFF, 0 ); in softfloat_roundPackMToF128M()
110 ui = packToF128UI96( sign, 0x7FFE, 0x0000FFFF ); in softfloat_roundPackMToF128M()
157 zWPtr[indexWordHi( 4 )] = packToF128UI96( sign, exp, ui ); in softfloat_roundPackMToF128M()
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 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 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 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 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 Df128M_to_f32.c60 bool sign; in f128M_to_f32() local
69 sign = signF128UI96( uiA96 ); in f128M_to_f32()
79 uiZ = packToF32UI( sign, 0xFF, 0 ); in f128M_to_f32()
85 uiZ = packToF32UI( sign, 0, 0 ); in f128M_to_f32()
92 return softfloat_roundPackToF32( sign, exp, sig32 | 0x40000000 ); in f128M_to_f32()
/optee_os/lib/libutils/isoc/arch/arm/softfloat/source/include/
A Dinternals.h89 #define packToF32UI( sign, exp, sig ) (((uint32_t) (sign)<<31) + ((uint32_t) (exp)<<23) + (sig)) argument
110 #define packToF64UI( sign, exp, sig ) ((uint64_t) (((uint_fast64_t) (sign)<<63) + ((uint_fast64_t) … argument
130 #define packToExtF80UI64( sign, exp ) ((uint_fast16_t) (sign)<<15 | (exp)) argument
161 #define packToF128UI64( sign, exp, sig64 ) (((uint_fast64_t) (sign)<<63) + ((uint_fast64_t) (exp)<<… argument
232 #define packToF128UI96( sign, exp, sig96 ) (((uint32_t) (sign)<<31) + ((uint32_t) (exp)<<16) + (sig… argument
/optee_os/lib/libutils/ext/
A Dsnprintk.c294 sign = '\0'; in kprintf()
304 if (!sign) in kprintf()
305 sign = ' '; in kprintf()
325 sign = '+'; in kprintf()
383 sign = '\0'; in kprintf()
393 sign = '-'; in kprintf()
430 sign = '\0'; in kprintf()
467 sign = '\0'; in kprintf()
553 sign = '\0'; in kprintf()
572 if (sign) in kprintf()
[all …]

Completed in 28 milliseconds

12345678910>>...12