/optee_os/lib/libutils/isoc/arch/arm/softfloat/source/ |
A D | s_roundPackToExtF80.c | 48 uint_fast64_t sig, in softfloat_roundPackToExtF80() argument 87 || (sig <= (uint64_t) (sig + roundIncrement)); in softfloat_roundPackToExtF80() 88 sig = softfloat_shiftRightJam64( sig, 1 - exp ); in softfloat_roundPackToExtF80() 113 sig = (uint64_t) (sig + roundIncrement); in softfloat_roundPackToExtF80() 122 sig &= ~roundMask; in softfloat_roundPackToExtF80() 161 ++sig; in softfloat_roundPackToExtF80() 162 sig &= in softfloat_roundPackToExtF80() 196 ++sig; in softfloat_roundPackToExtF80() 197 if ( ! sig ) { in softfloat_roundPackToExtF80() 201 sig &= in softfloat_roundPackToExtF80() [all …]
|
A D | s_roundPackMToExtF80M.c | 64 sig = in softfloat_roundPackMToExtF80M() 96 || (sig <= (uint64_t) (sig + roundIncrement)); in softfloat_roundPackMToExtF80M() 97 sig = softfloat_shiftRightJam64( sig, 1 - exp ); in softfloat_roundPackMToExtF80M() 114 || ((exp == 0x7FFE) && ((uint64_t) (sig + roundIncrement) < sig)) in softfloat_roundPackMToExtF80M() 122 sig += roundIncrement; in softfloat_roundPackMToExtF80M() 131 sig &= ~roundMask; in softfloat_roundPackMToExtF80M() 173 sig = in softfloat_roundPackMToExtF80M() 177 ++sig; in softfloat_roundPackMToExtF80M() 213 ++sig; in softfloat_roundPackMToExtF80M() 214 if ( ! sig ) { in softfloat_roundPackMToExtF80M() [all …]
|
A D | s_roundPackToF32.c | 45 softfloat_roundPackToF32( bool sign, int_fast16_t exp, uint_fast32_t sig ) in softfloat_roundPackToF32() argument 64 roundBits = sig & 0x7F; in softfloat_roundPackToF32() 71 || (sig + roundIncrement < 0x80000000); in softfloat_roundPackToF32() 72 sig = softfloat_shiftRightJam32( sig, -exp ); in softfloat_roundPackToF32() 74 roundBits = sig & 0x7F; in softfloat_roundPackToF32() 78 } else if ( (0xFD < exp) || (0x80000000 <= sig + roundIncrement) ) { in softfloat_roundPackToF32() 86 sig = (sig + roundIncrement)>>7; in softfloat_roundPackToF32() 87 sig &= ~(uint_fast32_t) (! (roundBits ^ 0x40) & roundNearEven); in softfloat_roundPackToF32() 88 uiZ = packToF32UI( sign, sig ? exp : 0, sig ); in softfloat_roundPackToF32()
|
A D | s_roundPackToF64.c | 45 softfloat_roundPackToF64( bool sign, int_fast16_t exp, uint_fast64_t sig ) in softfloat_roundPackToF64() argument 64 roundBits = sig & 0x3FF; in softfloat_roundPackToF64() 71 || (sig + roundIncrement < UINT64_C( 0x8000000000000000 )); in softfloat_roundPackToF64() 72 sig = softfloat_shiftRightJam64( sig, -exp ); in softfloat_roundPackToF64() 74 roundBits = sig & 0x3FF; in softfloat_roundPackToF64() 80 || (UINT64_C( 0x8000000000000000 ) <= sig + roundIncrement) in softfloat_roundPackToF64() 89 sig = (sig + roundIncrement)>>10; in softfloat_roundPackToF64() 90 sig &= ~(uint_fast64_t) (! (roundBits ^ 0x200) & roundNearEven); in softfloat_roundPackToF64() 91 uiZ = packToF64UI( sign, sig ? exp : 0, sig ); in softfloat_roundPackToF64()
|
A D | f64_to_i64.c | 50 uint_fast64_t sig; in f64_to_i64() local 62 sig = fracF64UI( uiA ); in f64_to_i64() 63 if ( exp ) sig |= UINT64_C( 0x0010000000000000 ); in f64_to_i64() 72 && (sig != UINT64_C( 0x0010000000000000 ))) in f64_to_i64() 76 sigExtra.v = sig<<-shiftCount; in f64_to_i64() 92 && (sig != UINT64_C( 0x0010000000000000 ))) in f64_to_i64() 96 sig <<= -shiftCount; in f64_to_i64() 97 extSig[indexWord( 3, 2 )] = sig>>32; in f64_to_i64() 98 extSig[indexWord( 3, 1 )] = sig; in f64_to_i64() 100 extSig[indexWord( 3, 2 )] = sig>>32; in f64_to_i64() [all …]
|
A D | extF80M_to_f128M.c | 63 uint64_t sig; in extF80M_to_f128M() local 76 sig = aSPtr->signif; in extF80M_to_f128M() 81 if ( sig & UINT64_C( 0x7FFFFFFFFFFFFFFF ) ) { in extF80M_to_f128M() 92 if ( ! (sig & UINT64_C( 0x8000000000000000 )) ) { in extF80M_to_f128M() 93 if ( ! sig ) { in extF80M_to_f128M() 97 exp += softfloat_normExtF80SigM( &sig ); in extF80M_to_f128M() 101 zWPtr[indexWord( 4, 1 )] = (uint32_t) sig<<17; in extF80M_to_f128M() 102 sig >>= 15; in extF80M_to_f128M() 103 zWPtr[indexWord( 4, 2 )] = sig; in extF80M_to_f128M() 105 zWPtr[indexWordHi( 4 )] = sig>>32; in extF80M_to_f128M() [all …]
|
A D | f64_to_f128M.c | 63 uint64_t sig; in f64_to_f128M() local 77 sig = fracF64UI( uiA ); in f64_to_f128M() 82 if ( sig ) { in f64_to_f128M() 93 if ( ! sig ) { in f64_to_f128M() 97 normExpSig = softfloat_normSubnormalF64Sig( sig ); in f64_to_f128M() 99 sig = normExpSig.sig; in f64_to_f128M() 103 zWPtr[indexWord( 4, 1 )] = (uint32_t) sig<<28; in f64_to_f128M() 104 sig >>= 4; in f64_to_f128M() 105 zWPtr[indexWordHi( 4 )] = packToF128UI96( sign, exp + 0x3C00, sig>>32 ); in f64_to_f128M() 106 zWPtr[indexWord( 4, 2 )] = sig; in f64_to_f128M()
|
A D | f128M_to_ui64_r_minMag.c | 60 uint32_t sig96, sig[4]; in f128M_to_ui64_r_minMag() local 71 sig[indexWord( 4, 3 )] = sig96; in f128M_to_ui64_r_minMag() 72 sig[indexWord( 4, 2 )] = aWPtr[indexWord( 4, 2 )]; in f128M_to_ui64_r_minMag() 73 sig[indexWord( 4, 1 )] = aWPtr[indexWord( 4, 1 )]; in f128M_to_ui64_r_minMag() 74 sig[indexWord( 4, 0 )] = aWPtr[indexWord( 4, 0 )]; in f128M_to_ui64_r_minMag() 75 softfloat_shiftRightJam128M( sig, shiftCount + 17, sig ); in f128M_to_ui64_r_minMag() 76 z = (uint64_t) sig[indexWord( 4, 2 )]<<32 | sig[indexWord( 4, 1 )]; in f128M_to_ui64_r_minMag() 78 if ( sig[indexWordLo( 4 )] ) { in f128M_to_ui64_r_minMag()
|
A D | f64_to_ui64.c | 50 uint_fast64_t sig; in f64_to_ui64() local 62 sig = fracF64UI( uiA ); in f64_to_ui64() 63 if ( exp ) sig |= UINT64_C( 0x0010000000000000 ); in f64_to_ui64() 71 sigExtra.v = sig<<-shiftCount; in f64_to_ui64() 74 sigExtra = softfloat_shiftRightJam64Extra( sig, 0, shiftCount ); in f64_to_ui64() 86 sig <<= -shiftCount; in f64_to_ui64() 87 extSig[indexWord( 3, 2 )] = sig>>32; in f64_to_ui64() 88 extSig[indexWord( 3, 1 )] = sig; in f64_to_ui64() 90 extSig[indexWord( 3, 2 )] = sig>>32; in f64_to_ui64() 91 extSig[indexWord( 3, 1 )] = sig; in f64_to_ui64()
|
A D | f64_to_i32_r_minMag.c | 49 uint_fast64_t sig; in f64_to_i32_r_minMag() local 57 sig = fracF64UI( uiA ); in f64_to_i32_r_minMag() 60 if ( exact && (exp | sig) ) { in f64_to_i32_r_minMag() 68 sign && (exp == 0x41E) && (sig < UINT64_C( 0x0000000000200000 )) in f64_to_i32_r_minMag() 70 if ( exact && sig ) { in f64_to_i32_r_minMag() 75 if ( ! sign || ((exp == 0x7FF) && sig) ) return 0x7FFFFFFF; in f64_to_i32_r_minMag() 79 sig |= UINT64_C( 0x0010000000000000 ); in f64_to_i32_r_minMag() 80 absZ = sig>>shiftCount; in f64_to_i32_r_minMag() 81 if ( exact && ((uint_fast64_t) (uint_fast32_t) absZ<<shiftCount != sig) ) { in f64_to_i32_r_minMag()
|
A D | f64_to_i64_r_minMag.c | 50 uint_fast64_t sig; in f64_to_i64_r_minMag() local 58 sig = fracF64UI( uiA ); in f64_to_i64_r_minMag() 64 if ( ! sign || ((exp == 0x7FF) && sig) ) { in f64_to_i64_r_minMag() 70 sig |= UINT64_C( 0x0010000000000000 ); in f64_to_i64_r_minMag() 71 absZ = sig<<-shiftCount; in f64_to_i64_r_minMag() 74 if ( exact && (exp | sig) ) { in f64_to_i64_r_minMag() 79 sig |= UINT64_C( 0x0010000000000000 ); in f64_to_i64_r_minMag() 80 absZ = sig>>shiftCount; in f64_to_i64_r_minMag() 81 if ( exact && (absZ<<shiftCount != sig) ) { in f64_to_i64_r_minMag()
|
A D | extF80M_to_i32.c | 65 uint64_t sig; in extF80M_to_i32() local 74 sig = aSPtr->signif; in extF80M_to_i32() 77 if ( (exp == 0x7FFF) && (sig & UINT64_C( 0x7FFFFFFFFFFFFFFF )) ) sign = 0; in extF80M_to_i32() 80 if ( sig>>32 ) goto invalid; in extF80M_to_i32() 82 sig <<= -shiftCount; in extF80M_to_i32() 84 if ( (uint32_t) sig ) goto invalid; in extF80M_to_i32() 87 sig = softfloat_shiftRightJam64( sig, shiftCount ); in extF80M_to_i32() 89 return softfloat_roundPackToI32( sign, sig, roundingMode, exact ); in extF80M_to_i32()
|
A D | extF80M_to_f64.c | 62 uint64_t sig; in extF80M_to_f64() local 73 sig = aSPtr->signif; in extF80M_to_f64() 77 if ( sig & UINT64_C( 0x7FFFFFFFFFFFFFFF ) ) { in extF80M_to_f64() 87 if ( ! (sig & UINT64_C( 0x8000000000000000 )) ) { in extF80M_to_f64() 88 if ( ! sig ) { in extF80M_to_f64() 92 exp += softfloat_normExtF80SigM( &sig ); in extF80M_to_f64() 96 sig = softfloat_shortShiftRightJam64( sig, 1 ); in extF80M_to_f64() 103 sign, exp, sig | UINT64_C( 0x4000000000000000 ) ); in extF80M_to_f64()
|
A D | f128M_to_i64_r_minMag.c | 61 uint32_t sig96, sig[4]; in f128M_to_i64_r_minMag() local 74 sig[indexWord( 4, 3 )] = sig96; in f128M_to_i64_r_minMag() 75 sig[indexWord( 4, 2 )] = aWPtr[indexWord( 4, 2 )]; in f128M_to_i64_r_minMag() 76 sig[indexWord( 4, 1 )] = aWPtr[indexWord( 4, 1 )]; in f128M_to_i64_r_minMag() 77 sig[indexWord( 4, 0 )] = aWPtr[indexWord( 4, 0 )]; in f128M_to_i64_r_minMag() 78 softfloat_shiftRightJam128M( sig, shiftCount + 17, sig ); in f128M_to_i64_r_minMag() 79 uiZ = (uint64_t) sig[indexWord( 4, 2 )]<<32 | sig[indexWord( 4, 1 )]; in f128M_to_i64_r_minMag() 83 if ( sig[indexWordLo( 4 )] ) { in f128M_to_i64_r_minMag()
|
A D | f32_to_i32_r_minMag.c | 49 uint_fast32_t sig; in f32_to_i32_r_minMag() local 57 sig = fracF32UI( uiA ); in f32_to_i32_r_minMag() 60 if ( exact && (exp | sig) ) { in f32_to_i32_r_minMag() 69 if ( ! sign || ((exp == 0xFF) && sig) ) return 0x7FFFFFFF; in f32_to_i32_r_minMag() 73 sig = (sig | 0x00800000)<<8; in f32_to_i32_r_minMag() 74 absZ = sig>>shiftCount; in f32_to_i32_r_minMag() 75 if ( exact && ((uint_fast32_t) absZ<<shiftCount != sig) ) { in f32_to_i32_r_minMag()
|
A D | extF80M_to_ui32.c | 65 uint64_t sig; in extF80M_to_ui32() local 74 sig = aSPtr->signif; in extF80M_to_ui32() 79 if ( sig>>32 ) goto invalid; in extF80M_to_ui32() 81 sig <<= -shiftCount; in extF80M_to_ui32() 83 if ( (uint32_t) sig ) goto invalid; in extF80M_to_ui32() 86 sig = softfloat_shiftRightJam64( sig, shiftCount ); in extF80M_to_ui32() 88 return softfloat_roundPackToUI32( sign, sig, roundingMode, exact ); in extF80M_to_ui32()
|
A D | f128M_to_ui64.c | 62 uint32_t sig96, sig[4]; in f128M_to_ui64() local 74 sig[indexWord( 4, 3 )] = sig96; in f128M_to_ui64() 75 sig[indexWord( 4, 2 )] = aWPtr[indexWord( 4, 2 )]; in f128M_to_ui64() 76 sig[indexWord( 4, 1 )] = aWPtr[indexWord( 4, 1 )]; in f128M_to_ui64() 77 sig[indexWord( 4, 0 )] = aWPtr[indexWord( 4, 0 )]; in f128M_to_ui64() 78 softfloat_shiftRightJam128M( sig, shiftCount, sig ); in f128M_to_ui64() 82 sig + indexMultiwordLo( 4, 3 ), in f128M_to_ui64()
|
A D | f32_to_f64.c | 51 uint_fast32_t sig; in f32_to_f64() local 61 sig = fracF32UI( uiA ); in f32_to_f64() 63 if ( sig ) { in f32_to_f64() 72 if ( ! sig ) { in f32_to_f64() 76 normExpSig = softfloat_normSubnormalF32Sig( sig ); in f32_to_f64() 78 sig = normExpSig.sig; in f32_to_f64() 80 uiZ = packToF64UI( sign, exp + 0x380, (uint_fast64_t) sig<<29 ); in f32_to_f64()
|
A D | extF80_to_i32_r_minMag.c | 49 uint_fast64_t sig; in extF80_to_i32_r_minMag() local 57 sig = uA.s.signif; in extF80_to_i32_r_minMag() 60 if ( exact && (exp | sig) ) { in extF80_to_i32_r_minMag() 69 && (sig < UINT64_C( 0x8000000100000000 )) in extF80_to_i32_r_minMag() 71 if ( exact && (sig & UINT64_C( 0x00000000FFFFFFFF )) ) { in extF80_to_i32_r_minMag() 78 || ((exp == 0x7FFF) && (sig & UINT64_C( 0x7FFFFFFFFFFFFFFF ))) in extF80_to_i32_r_minMag() 85 absZ = sig>>shiftCount; in extF80_to_i32_r_minMag() 87 exact && ((uint_fast64_t) (uint_fast32_t) absZ<<shiftCount != sig) in extF80_to_i32_r_minMag()
|
A D | s_normRoundPackToExtF80.c | 47 uint_fast64_t sig, in softfloat_normRoundPackToExtF80() argument 55 if ( ! sig ) { in softfloat_normRoundPackToExtF80() 57 sig = sigExtra; in softfloat_normRoundPackToExtF80() 60 shiftCount = softfloat_countLeadingZeros64( sig ); in softfloat_normRoundPackToExtF80() 63 sig128 = softfloat_shortShiftLeft128( sig, sigExtra, shiftCount ); in softfloat_normRoundPackToExtF80() 64 sig = sig128.v64; in softfloat_normRoundPackToExtF80() 69 sign, exp, sig, sigExtra, roundingPrecision ); in softfloat_normRoundPackToExtF80()
|
A D | f32_to_f128.c | 51 uint_fast32_t sig; in f32_to_f128() local 61 sig = fracF32UI( uiA ); in f32_to_f128() 63 if ( sig ) { in f32_to_f128() 73 if ( ! sig ) { in f32_to_f128() 78 normExpSig = softfloat_normSubnormalF32Sig( sig ); in f32_to_f128() 80 sig = normExpSig.sig; in f32_to_f128() 82 uiZ.v64 = packToF128UI64( sign, exp + 0x3F80, (uint_fast64_t) sig<<25 ); in f32_to_f128()
|
A D | f64_to_i32.c | 50 uint_fast64_t sig; in f64_to_i32() local 57 sig = fracF64UI( uiA ); in f64_to_i32() 58 if ( (exp == 0x7FF) && sig ) sign = 0; in f64_to_i32() 59 if ( exp ) sig |= UINT64_C( 0x0010000000000000 ); in f64_to_i32() 61 if ( 0 < shiftCount ) sig = softfloat_shiftRightJam64( sig, shiftCount ); in f64_to_i32() 62 return softfloat_roundPackToI32( sign, sig, roundingMode, exact ); in f64_to_i32()
|
A D | f128M_to_i64.c | 65 uint32_t sig[4]; in f128M_to_i64() local 87 sig[indexWord( 4, 3 )] = sig96; in f128M_to_i64() 88 sig[indexWord( 4, 2 )] = aWPtr[indexWord( 4, 2 )]; in f128M_to_i64() 89 sig[indexWord( 4, 1 )] = aWPtr[indexWord( 4, 1 )]; in f128M_to_i64() 90 sig[indexWord( 4, 0 )] = aWPtr[indexWord( 4, 0 )]; in f128M_to_i64() 91 softfloat_shiftRightJam128M( sig, shiftCount, sig ); in f128M_to_i64() 94 sign, sig + indexMultiwordLo( 4, 3 ), roundingMode, exact ); in f128M_to_i64()
|
A D | f64_to_extF80M.c | 63 uint64_t sig; in f64_to_extF80M() local 74 sig = fracF64UI( uiA ); in f64_to_extF80M() 76 if ( sig ) { in f64_to_extF80M() 86 if ( ! sig ) { in f64_to_extF80M() 91 normExpSig = softfloat_normSubnormalF64Sig( sig ); in f64_to_extF80M() 93 sig = normExpSig.sig; in f64_to_extF80M() 96 uiZ0 = UINT64_C( 0x8000000000000000 ) | sig<<11; in f64_to_extF80M()
|
/optee_os/lib/libmbedtls/mbedtls/library/ |
A D | pk_wrap.c | 111 unsigned char *sig, size_t *sig_len, in rsa_sign_wrap() argument 239 unsigned char *sig, size_t *sig_len, 261 unsigned char *sig, size_t *sig_len, in eckey_sign_wrap() argument 594 p = (unsigned char*) sig; in ecdsa_verify_wrap() 610 if( p != sig + sig_len ) in ecdsa_verify_wrap() 659 hash, hash_len, sig, sig_len, in ecdsa_verify_rs_wrap() 797 unsigned char sig[MBEDTLS_MPI_MAX_SIZE]; in rsa_alt_check_pair() local 978 unsigned char *p = sig + buf_len; in pk_ecdsa_sig_asn1_from_psa() 987 memmove( sig, p, len ); in pk_ecdsa_sig_asn1_from_psa() 1005 ((void) sig); in pk_opaque_sign_wrap() [all …]
|