Home
last modified time | relevance | path

Searched refs:roundingMode (Results 1 – 25 of 42) sorted by relevance

12

/optee_os/lib/libutils/isoc/arch/arm/softfloat/source/
A Ds_roundPackToF128.c53 uint_fast8_t roundingMode; in softfloat_roundPackToF128() local
60 roundingMode = softfloat_roundingMode; in softfloat_roundPackToF128()
61 roundNearEven = (roundingMode == softfloat_round_near_even); in softfloat_roundPackToF128()
63 if ( ! roundNearEven && (roundingMode != softfloat_round_near_maxMag) ) { in softfloat_roundPackToF128()
65 (roundingMode in softfloat_roundPackToF128()
94 && (roundingMode != softfloat_round_near_maxMag) in softfloat_roundPackToF128()
97 (roundingMode in softfloat_roundPackToF128()
116 || (roundingMode == softfloat_round_near_maxMag) in softfloat_roundPackToF128()
117 || (roundingMode in softfloat_roundPackToF128()
A Ds_roundPackMToExtF80M.c53 uint_fast8_t roundingMode; in softfloat_roundPackMToExtF80M() local
62 roundingMode = softfloat_roundingMode; in softfloat_roundPackMToExtF80M()
63 roundNearEven = (roundingMode == softfloat_round_near_even); in softfloat_roundPackMToExtF80M()
80 if ( ! roundNearEven && (roundingMode != softfloat_round_near_maxMag) ) { in softfloat_roundPackMToExtF80M()
82 (roundingMode in softfloat_roundPackMToExtF80M()
138 if ( ! roundNearEven && (roundingMode != softfloat_round_near_maxMag) ) { in softfloat_roundPackMToExtF80M()
140 (roundingMode in softfloat_roundPackMToExtF80M()
165 && (roundingMode != softfloat_round_near_maxMag) in softfloat_roundPackMToExtF80M()
168 (roundingMode in softfloat_roundPackMToExtF80M()
196 || (roundingMode == softfloat_round_near_maxMag) in softfloat_roundPackMToExtF80M()
[all …]
A Df128_roundToInt.c46 f128_roundToInt( float128_t a, uint_fast8_t roundingMode, bool exact ) in f128_roundToInt() argument
80 roundNearEven = (roundingMode == softfloat_round_near_even); in f128_roundToInt()
81 if ( roundNearEven || (roundingMode == softfloat_round_near_maxMag) ) { in f128_roundToInt()
98 } else if ( roundingMode != softfloat_round_minMag ) { in f128_roundToInt()
100 signF128UI64( uiZ.v64 ) ^ (roundingMode == softfloat_round_max) in f128_roundToInt()
116 switch ( roundingMode ) { in f128_roundToInt()
137 if ( roundingMode == softfloat_round_near_maxMag ) { in f128_roundToInt()
139 } else if ( roundingMode == softfloat_round_near_even ) { in f128_roundToInt()
144 } else if ( roundingMode != softfloat_round_minMag ) { in f128_roundToInt()
146 signF128UI64( uiZ.v64 ) ^ (roundingMode == softfloat_round_max) in f128_roundToInt()
A Ds_roundPackToExtF80.c53 uint_fast8_t roundingMode; in softfloat_roundPackToExtF80() local
60 roundingMode = softfloat_roundingMode; in softfloat_roundPackToExtF80()
61 roundNearEven = (roundingMode == softfloat_round_near_even); in softfloat_roundPackToExtF80()
73 if ( ! roundNearEven && (roundingMode != softfloat_round_near_maxMag) ) { in softfloat_roundPackToExtF80()
75 (roundingMode in softfloat_roundPackToExtF80()
127 if ( ! roundNearEven && (roundingMode != softfloat_round_near_maxMag) ) { in softfloat_roundPackToExtF80()
129 (roundingMode in softfloat_roundPackToExtF80()
152 && (roundingMode != softfloat_round_near_maxMag) in softfloat_roundPackToExtF80()
155 (roundingMode in softfloat_roundPackToExtF80()
181 || (roundingMode == softfloat_round_near_maxMag) in softfloat_roundPackToExtF80()
[all …]
A Ds_roundPackMToF128M.c48 uint_fast8_t roundingMode; in softfloat_roundPackMToF128M() local
56 roundingMode = softfloat_roundingMode; in softfloat_roundPackMToF128M()
57 roundNearEven = (roundingMode == softfloat_round_near_even); in softfloat_roundPackMToF128M()
60 if ( ! roundNearEven && (roundingMode != softfloat_round_near_maxMag) ) { in softfloat_roundPackMToF128M()
62 (roundingMode in softfloat_roundPackMToF128M()
85 && (roundingMode != softfloat_round_near_maxMag) in softfloat_roundPackMToF128M()
88 (roundingMode in softfloat_roundPackMToF128M()
103 || (roundingMode == softfloat_round_near_maxMag) in softfloat_roundPackMToF128M()
104 || (roundingMode in softfloat_roundPackMToF128M()
A DextF80M_roundToInt.c50 uint_fast8_t roundingMode, in extF80M_roundToInt() argument
56 *zPtr = extF80_roundToInt( *aPtr, roundingMode, exact ); in extF80M_roundToInt()
65 uint_fast8_t roundingMode, in extF80M_roundToInt() argument
102 switch ( roundingMode ) { in extF80M_roundToInt()
144 if ( roundingMode == softfloat_round_near_maxMag ) { in extF80M_roundToInt()
146 } else if ( roundingMode == softfloat_round_near_even ) { in extF80M_roundToInt()
149 } else if ( roundingMode != softfloat_round_minMag ) { in extF80M_roundToInt()
150 if ( (signUI64 != 0) ^ (roundingMode == softfloat_round_max) ) { in extF80M_roundToInt()
A Df128M_roundToInt.c50 uint_fast8_t roundingMode, in f128M_roundToInt() argument
56 *zPtr = f128_roundToInt( *aPtr, roundingMode, exact ); in f128M_roundToInt()
65 uint_fast8_t roundingMode, in f128M_roundToInt() argument
105 switch ( roundingMode ) { in f128M_roundToInt()
145 (roundingMode == softfloat_round_near_maxMag) in f128M_roundToInt()
146 || (roundingMode == softfloat_round_near_even); in f128M_roundToInt()
166 (roundingMode == softfloat_round_near_even) in f128M_roundToInt()
184 (roundingMode != softfloat_round_minMag) in f128M_roundToInt()
185 && (signF128UI96( ui96 ) ^ (roundingMode == softfloat_round_max)) in f128M_roundToInt()
A Df32_roundToInt.c45 float32_t f32_roundToInt( float32_t a, uint_fast8_t roundingMode, bool exact ) in f32_roundToInt() argument
64 switch ( roundingMode ) { in f32_roundToInt()
93 if ( roundingMode == softfloat_round_near_maxMag ) { in f32_roundToInt()
95 } else if ( roundingMode == softfloat_round_near_even ) { in f32_roundToInt()
98 } else if ( roundingMode != softfloat_round_minMag ) { in f32_roundToInt()
99 if ( signF32UI( uiZ ) ^ (roundingMode == softfloat_round_max) ) { in f32_roundToInt()
A Df64_roundToInt.c45 float64_t f64_roundToInt( float64_t a, uint_fast8_t roundingMode, bool exact ) in f64_roundToInt() argument
64 switch ( roundingMode ) { in f64_roundToInt()
93 if ( roundingMode == softfloat_round_near_maxMag ) { in f64_roundToInt()
95 } else if ( roundingMode == softfloat_round_near_even ) { in f64_roundToInt()
98 } else if ( roundingMode != softfloat_round_minMag ) { in f64_roundToInt()
99 if ( signF64UI( uiZ ) ^ (roundingMode == softfloat_round_max) ) { in f64_roundToInt()
A Ds_roundPackToF32.c47 uint_fast8_t roundingMode; in softfloat_roundPackToF32() local
54 roundingMode = softfloat_roundingMode; in softfloat_roundPackToF32()
55 roundNearEven = (roundingMode == softfloat_round_near_even); in softfloat_roundPackToF32()
57 if ( ! roundNearEven && (roundingMode != softfloat_round_near_maxMag) ) { in softfloat_roundPackToF32()
59 (roundingMode in softfloat_roundPackToF32()
A Ds_roundPackToF64.c47 uint_fast8_t roundingMode; in softfloat_roundPackToF64() local
54 roundingMode = softfloat_roundingMode; in softfloat_roundPackToF64()
55 roundNearEven = (roundingMode == softfloat_round_near_even); in softfloat_roundPackToF64()
57 if ( ! roundNearEven && (roundingMode != softfloat_round_near_maxMag) ) { in softfloat_roundPackToF64()
59 (roundingMode in softfloat_roundPackToF64()
A DextF80_roundToInt.c46 extF80_roundToInt( extFloat80_t a, uint_fast8_t roundingMode, bool exact ) in extF80_roundToInt() argument
97 switch ( roundingMode ) { in extF80_roundToInt()
124 if ( roundingMode == softfloat_round_near_maxMag ) { in extF80_roundToInt()
126 } else if ( roundingMode == softfloat_round_near_even ) { in extF80_roundToInt()
129 } else if ( roundingMode != softfloat_round_minMag ) { in extF80_roundToInt()
130 if ( (signUI64 != 0) ^ (roundingMode == softfloat_round_max) ) { in extF80_roundToInt()
A Ds_roundPackToUI64.c49 uint_fast8_t roundingMode, in softfloat_roundPackToUI64() argument
55 roundNearEven = (roundingMode == softfloat_round_near_even); in softfloat_roundPackToUI64()
57 if ( ! roundNearEven && (roundingMode != softfloat_round_near_maxMag) ) { in softfloat_roundPackToUI64()
59 (roundingMode in softfloat_roundPackToUI64()
A Ds_roundPackToUI32.c46 bool sign, uint_fast64_t sig, uint_fast8_t roundingMode, bool exact ) in softfloat_roundPackToUI32() argument
52 roundNearEven = (roundingMode == softfloat_round_near_even); in softfloat_roundPackToUI32()
54 if ( ! roundNearEven && (roundingMode != softfloat_round_near_maxMag) ) { in softfloat_roundPackToUI32()
56 (roundingMode in softfloat_roundPackToUI32()
A Ds_roundPackMToUI64.c46 bool sign, uint32_t *extSigPtr, uint_fast8_t roundingMode, bool exact ) in softfloat_roundPackMToUI64() argument
53 roundNearEven = (roundingMode == softfloat_round_near_even); in softfloat_roundPackMToUI64()
56 if ( ! roundNearEven && (roundingMode != softfloat_round_near_maxMag) ) { in softfloat_roundPackMToUI64()
58 (roundingMode in softfloat_roundPackMToUI64()
A Ds_roundPackToI32.c46 bool sign, uint_fast64_t sig, uint_fast8_t roundingMode, bool exact ) in softfloat_roundPackToI32() argument
54 roundNearEven = (roundingMode == softfloat_round_near_even); in softfloat_roundPackToI32()
56 if ( ! roundNearEven && (roundingMode != softfloat_round_near_maxMag) ) { in softfloat_roundPackToI32()
58 (roundingMode in softfloat_roundPackToI32()
A Ds_roundPackToI64.c49 uint_fast8_t roundingMode, in softfloat_roundPackToI64() argument
57 roundNearEven = (roundingMode == softfloat_round_near_even); in softfloat_roundPackToI64()
59 if ( ! roundNearEven && (roundingMode != softfloat_round_near_maxMag) ) { in softfloat_roundPackToI64()
61 (roundingMode in softfloat_roundPackToI64()
A Df128M_to_ui32.c47 f128M_to_ui32( const float128_t *aPtr, uint_fast8_t roundingMode, bool exact ) in f128M_to_ui32() argument
50 return f128_to_ui32( *aPtr, roundingMode, exact ); in f128M_to_ui32()
57 f128M_to_ui32( const float128_t *aPtr, uint_fast8_t roundingMode, bool exact ) in f128M_to_ui32() argument
77 signF128UI96( uiA96 ), sig64, roundingMode, exact ); in f128M_to_ui32()
A DextF80M_to_ui32.c48 const extFloat80_t *aPtr, uint_fast8_t roundingMode, bool exact ) in extF80M_to_ui32() argument
51 return extF80_to_ui32( *aPtr, roundingMode, exact ); in extF80M_to_ui32()
59 const extFloat80_t *aPtr, uint_fast8_t roundingMode, bool exact ) in extF80M_to_ui32() argument
88 return softfloat_roundPackToUI32( sign, sig, roundingMode, exact ); in extF80M_to_ui32()
A DextF80M_to_ui64.c48 const extFloat80_t *aPtr, uint_fast8_t roundingMode, bool exact ) in extF80M_to_ui64() argument
51 return extF80_to_ui64( *aPtr, roundingMode, exact ); in extF80M_to_ui64()
59 const extFloat80_t *aPtr, uint_fast8_t roundingMode, bool exact ) in extF80M_to_ui64() argument
86 return softfloat_roundPackMToUI64( sign, extSig, roundingMode, exact ); in extF80M_to_ui64()
A Ds_roundPackMToI64.c46 bool sign, uint32_t *extSigPtr, uint_fast8_t roundingMode, bool exact ) in softfloat_roundPackMToI64() argument
55 roundNearEven = (roundingMode == softfloat_round_near_even); in softfloat_roundPackMToI64()
58 if ( ! roundNearEven && (roundingMode != softfloat_round_near_maxMag) ) { in softfloat_roundPackMToI64()
60 (roundingMode in softfloat_roundPackMToI64()
A DextF80M_to_i32.c48 const extFloat80_t *aPtr, uint_fast8_t roundingMode, bool exact ) in extF80M_to_i32() argument
51 return extF80_to_i32( *aPtr, roundingMode, exact ); in extF80M_to_i32()
59 const extFloat80_t *aPtr, uint_fast8_t roundingMode, bool exact ) in extF80M_to_i32() argument
89 return softfloat_roundPackToI32( sign, sig, roundingMode, exact ); in extF80M_to_i32()
A Df128M_to_ui64.c47 f128M_to_ui64( const float128_t *aPtr, uint_fast8_t roundingMode, bool exact ) in f128M_to_ui64() argument
50 return f128_to_ui64( *aPtr, roundingMode, exact ); in f128M_to_ui64()
57 f128M_to_ui64( const float128_t *aPtr, uint_fast8_t roundingMode, bool exact ) in f128M_to_ui64() argument
83 roundingMode, in f128M_to_ui64()
A Df128M_to_i32.c47 f128M_to_i32( const float128_t *aPtr, uint_fast8_t roundingMode, bool exact ) in f128M_to_i32() argument
50 return f128_to_i32( *aPtr, roundingMode, exact ); in f128M_to_i32()
57 f128M_to_i32( const float128_t *aPtr, uint_fast8_t roundingMode, bool exact ) in f128M_to_i32() argument
83 return softfloat_roundPackToI32( sign, sig64, roundingMode, exact ); in f128M_to_i32()
A DextF80M_to_i64.c48 const extFloat80_t *aPtr, uint_fast8_t roundingMode, bool exact ) in extF80M_to_i64() argument
51 return extF80_to_i64( *aPtr, roundingMode, exact ); in extF80M_to_i64()
59 const extFloat80_t *aPtr, uint_fast8_t roundingMode, bool exact ) in extF80M_to_i64() argument
91 return softfloat_roundPackMToI64( sign, extSig, roundingMode, exact ); in extF80M_to_i64()

Completed in 29 milliseconds

12