/optee_os/lib/libutils/isoc/arch/arm/softfloat/source/ |
A D | f128_rem.c | 115 rem = sigA; in f128_rem() 124 q = softfloat_le128( sigB.v64, sigB.v0, rem.v64, rem.v0 ); in f128_rem() 126 rem = softfloat_sub128( rem.v64, rem.v0, sigB.v64, sigB.v0 ); in f128_rem() 136 rem = softfloat_shortShiftLeft128( rem.v64, rem.v0, 29 ); in f128_rem() 138 rem = softfloat_sub128( rem.v64, rem.v0, term.v64, term.v0 ); in f128_rem() 140 rem = softfloat_add128( rem.v64, rem.v0, sigB.v64, sigB.v0 ); in f128_rem() 148 rem = softfloat_shortShiftLeft128( rem.v64, rem.v0, expDiff + 30 ); in f128_rem() 150 rem = softfloat_sub128( rem.v64, rem.v0, term.v64, term.v0 ); in f128_rem() 159 altRem = rem; in f128_rem() 161 rem = softfloat_sub128( rem.v64, rem.v0, sigB.v64, sigB.v0 ); in f128_rem() [all …]
|
A D | extF80_rem.c | 138 rem = in extF80_rem() 150 rem = softfloat_shortShiftLeft128( rem.v64, rem.v0, 29 ); in extF80_rem() 152 rem = softfloat_sub128( rem.v64, rem.v0, term.v64, term.v0 ); in extF80_rem() 154 rem = in extF80_rem() 164 rem = softfloat_shortShiftLeft128( rem.v64, rem.v0, expDiff + 30 ); in extF80_rem() 166 rem = softfloat_sub128( rem.v64, rem.v0, term.v64, term.v0 ); in extF80_rem() 170 rem.v64, rem.v0, shiftedSigB.v64, shiftedSigB.v0 ); in extF80_rem() 179 rem = in extF80_rem() 181 rem.v64, rem.v0, shiftedSigB.v64, shiftedSigB.v0 ); in extF80_rem() 194 rem = softfloat_sub128( 0, 0, rem.v64, rem.v0 ); in extF80_rem() [all …]
|
A D | f64_rem.c | 57 uint64_t rem; in f64_rem() local 113 rem <<= 8; in f64_rem() 116 rem <<= 9; in f64_rem() 126 rem <<= 9; in f64_rem() 141 rem = (uint_fast64_t) (uint32_t) (rem>>3)<<32; in f64_rem() 144 if ( rem & UINT64_C( 0x8000000000000000 ) ) rem += sigB; in f64_rem() 151 rem = (rem<<(expDiff + 30)) - q * (uint64_t) sigB; in f64_rem() 160 altRem = rem; in f64_rem() 162 rem -= sigB; in f64_rem() 169 rem = altRem; in f64_rem() [all …]
|
A D | extF80_div.c | 62 struct uint128 rem; in extF80_div() local 129 rem = softfloat_shortShiftLeft128( 0, sigA, 32 ); in extF80_div() 141 rem = softfloat_shortShiftLeft128( rem.v64, rem.v0, 29 ); in extF80_div() 143 rem = softfloat_sub128( rem.v64, rem.v0, term.v64, term.v0 ); in extF80_div() 146 rem = softfloat_add128( rem.v64, rem.v0, sigB>>32, sigB<<32 ); in extF80_div() 153 rem = softfloat_shortShiftLeft128( rem.v64, rem.v0, 29 ); in extF80_div() 155 rem = softfloat_sub128( rem.v64, rem.v0, term.v64, term.v0 ); in extF80_div() 159 rem = softfloat_add128( rem.v64, rem.v0, term.v64, term.v0 ); in extF80_div() 160 } else if ( softfloat_le128( term.v64, term.v0, rem.v64, rem.v0 ) ) { in extF80_div() 162 rem = softfloat_sub128( rem.v64, rem.v0, term.v64, term.v0 ); in extF80_div() [all …]
|
A D | f128_div.c | 60 struct uint128 rem; in f128_div() local 125 rem = sigA; in f128_div() 137 rem = softfloat_shortShiftLeft128( rem.v64, rem.v0, 29 ); in f128_div() 139 rem = softfloat_sub128( rem.v64, rem.v0, term.v64, term.v0 ); in f128_div() 142 rem = softfloat_add128( rem.v64, rem.v0, sigB.v64, sigB.v0 ); in f128_div() 149 rem = softfloat_shortShiftLeft128( rem.v64, rem.v0, 29 ); in f128_div() 151 rem = softfloat_sub128( rem.v64, rem.v0, term.v64, term.v0 ); in f128_div() 154 rem = softfloat_add128( rem.v64, rem.v0, sigB.v64, sigB.v0 ); in f128_div() 155 } else if ( softfloat_le128( sigB.v64, sigB.v0, rem.v64, rem.v0 ) ) { in f128_div() 157 rem = softfloat_sub128( rem.v64, rem.v0, sigB.v64, sigB.v0 ); in f128_div() [all …]
|
A D | f32_rem.c | 57 uint32_t rem; in f32_rem() local 101 rem = sigA | 0x00800000; in f32_rem() 108 rem <<= 5; in f32_rem() 111 rem <<= 6; in f32_rem() 112 q = (sigB <= rem); in f32_rem() 121 rem <<= 7; in f32_rem() 139 rem = (rem<<(expDiff + 30)) - q * (uint32_t) sigB; in f32_rem() 144 altRem = rem; in f32_rem() 146 rem -= sigB; in f32_rem() 148 meanRem = rem + altRem; in f32_rem() [all …]
|
A D | extF80_sqrt.c | 59 struct uint128 rem; in extF80_sqrt() local 112 rem = softfloat_shortShiftLeft128( 0, sigA, 61 ); in extF80_sqrt() 114 rem = softfloat_shortShiftLeft128( 0, sigA, 62 ); in extF80_sqrt() 116 rem.v64 -= (uint_fast64_t) sig32Z * sig32Z; in extF80_sqrt() 119 q = ((uint_fast64_t) (uint32_t) (rem.v64>>2) * recipSqrt32)>>32; in extF80_sqrt() 123 rem = softfloat_shortShiftLeft128( rem.v64, rem.v0, 29 ); in extF80_sqrt() 124 rem = softfloat_sub128( rem.v64, rem.v0, term.v64, term.v0 ); in extF80_sqrt() 139 rem = softfloat_shortShiftLeft128( rem.v64, rem.v0, 28 ); in extF80_sqrt() 140 rem = softfloat_sub128( rem.v64, rem.v0, term.v64, term.v0 ); in extF80_sqrt() 141 if ( rem.v64 & UINT64_C( 0x8000000000000000 ) ) { in extF80_sqrt() [all …]
|
A D | f128M_sqrt.c | 63 uint32_t rem[6]; in f128M_sqrt() local 105 rem64 = (uint64_t) rem[indexWord( 4, 3 )]<<32 | rem[indexWord( 4, 2 )]; in f128M_sqrt() 108 softfloat_shortShiftRight128M( rem, 1, rem ); in f128M_sqrt() 120 rem[indexWord( 4, 3 )] = rem64>>32; in f128M_sqrt() 121 rem[indexWord( 4, 2 )] = rem64; in f128M_sqrt() 149 rem32 = rem[indexWordHi( 6 )]; in f128M_sqrt() 178 rem[indexWord( 6, 1 )] = 0; in f128M_sqrt() 179 rem[indexWord( 6, 0 )] = 0; in f128M_sqrt() 187 rem32 = rem[indexWord( 6, 4 )]; in f128M_sqrt() 192 rem32 || rem[indexWord( 6, 0 )] || rem[indexWord( 6, 1 )] in f128M_sqrt() [all …]
|
A D | f128_sqrt.c | 55 struct uint128 rem; in f128_sqrt() local 110 rem = softfloat_shortShiftLeft128( sigA.v64, sigA.v0, 12 ); in f128_sqrt() 112 rem = softfloat_shortShiftLeft128( sigA.v64, sigA.v0, 13 ); in f128_sqrt() 115 rem.v64 -= (uint_fast64_t) sig32Z * sig32Z; in f128_sqrt() 123 rem = softfloat_shortShiftLeft128( rem.v64, rem.v0, 29 ); in f128_sqrt() 125 rem = softfloat_sub128( rem.v64, rem.v0, term.v64, term.v0 ); in f128_sqrt() 129 y = softfloat_shortShiftLeft128( rem.v64, rem.v0, 29 ); in f128_sqrt() 138 rem = softfloat_sub128( y.v64, y.v0, term.v64, term.v0 ); in f128_sqrt() 139 if ( ! (rem.v64 & UINT64_C( 0x8000000000000000 )) ) break; in f128_sqrt() 164 rem = softfloat_shortShiftLeft128( rem.v64, rem.v0, 20 ); in f128_sqrt() [all …]
|
A D | extF80M_rem.c | 118 rem[indexWord( 3, 2 )] = sigA>>34; in extF80M_rem() 119 rem[indexWord( 3, 1 )] = sigA>>2; in extF80M_rem() 120 rem[indexWord( 3, 0 )] = (uint32_t) sigA<<30; in extF80M_rem() 132 q = (softfloat_compare96M( x, rem ) <= 0); in extF80M_rem() 133 if ( q ) softfloat_sub96M( rem, x, rem ); in extF80M_rem() 142 softfloat_remStep96MBy32( rem, 29, x, q, rem ); in extF80M_rem() 144 softfloat_add96M( rem, x, rem ); in extF80M_rem() 152 softfloat_remStep96MBy32( rem, expDiff + 30, x, q, rem ); in extF80M_rem() 153 if ( rem[indexWordHi( 3 )] & 0x80000000 ) { in extF80M_rem() 154 remPtr = rem; in extF80M_rem() [all …]
|
A D | extF80M_sqrt.c | 64 uint32_t rem[4], sig32A, recipSqrt32, sig32Z, q; in extF80M_sqrt() local 111 ((uint64_t) rem[indexWord( 4, 3 )]<<32 | rem[indexWord( 4, 2 )]) in extF80M_sqrt() 113 rem[indexWord( 4, 3 )] = rem64>>32; in extF80M_sqrt() 114 rem[indexWord( 4, 2 )] = rem64; in extF80M_sqrt() 124 &rem[indexMultiwordHi( 4, 3 )], in extF80M_sqrt() 128 &rem[indexMultiwordHi( 4, 3 )] in extF80M_sqrt() 130 rem64 = (uint64_t) rem[indexWord( 4, 3 )]<<32 | rem[indexWord( 4, 2 )]; in extF80M_sqrt() 149 rem[indexWord( 4, 0 )] = 0; in extF80M_sqrt() 150 softfloat_remStep128MBy32( rem, 28, term, q, rem ); in extF80M_sqrt() 151 q = rem[indexWordHi( 4 )]; in extF80M_sqrt() [all …]
|
A D | f64_sqrt.c | 55 uint_fast64_t rem; in f64_sqrt() local 108 rem = sigA - (uint_fast64_t) sig32Z * sig32Z; in f64_sqrt() 109 q = ((uint32_t) (rem>>2) * (uint_fast64_t) recipSqrt32)>>32; in f64_sqrt() 116 rem = (sigA<<52) - shiftedSigZ * shiftedSigZ; in f64_sqrt() 117 if ( rem & UINT64_C( 0x8000000000000000 ) ) { in f64_sqrt() 120 if ( rem ) sigZ |= 1; in f64_sqrt()
|
A D | f64_div.c | 61 uint_fast64_t rem; in f64_div() local 127 rem = in f64_div() 130 q = (((uint32_t) (rem>>32) * (uint_fast64_t) recip32)>>32) + 4; in f64_div() 138 rem = in f64_div() 139 ((rem - (uint_fast64_t) doubleTerm * (uint32_t) (sigB>>32))<<28) in f64_div() 141 if ( rem & UINT64_C( 0x8000000000000000 ) ) { in f64_div() 144 if ( rem ) sigZ |= 1; in f64_div()
|
A D | f32_div.c | 65 uint_fast64_t rem; in f32_div() local 144 rem = ((uint_fast64_t) sigA<<31) - (uint_fast64_t) sigZ * sigB; in f32_div() 146 rem = ((uint_fast64_t) sigA<<32) - (uint_fast64_t) (sigZ<<1) * sigB; in f32_div() 148 if ( rem & UINT64_C( 0x8000000000000000 ) ) { in f32_div() 151 if ( rem ) sigZ |= 1; in f32_div()
|
/optee_os/core/crypto/ |
A D | aes-gcm-ghash-tbl.c | 114 unsigned char lo = 0, hi = 0, rem = 0; in internal_aes_gcm_ghash_mult_tbl() local 127 rem = (unsigned char)zl & 0xf; in internal_aes_gcm_ghash_mult_tbl() 130 zh ^= (uint64_t)last4[rem] << 48; in internal_aes_gcm_ghash_mult_tbl() 135 rem = (unsigned char)zl & 0xf; in internal_aes_gcm_ghash_mult_tbl() 138 zh ^= (uint64_t)last4[rem] << 48; in internal_aes_gcm_ghash_mult_tbl()
|
/optee_os/core/lib/zlib/ |
A D | adler32.c | 151 unsigned rem; local 159 rem = (unsigned)len2; 161 sum2 = rem * sum1; 164 sum2 += ((adler1 >> 16) & 0xffff) + ((adler2 >> 16) & 0xffff) + BASE - rem;
|
/optee_os/core/drivers/clk/sam/ |
A D | at91_audio_pll.c | 195 unsigned long long rem = 0; in clk_audio_pll_frac_compute_frac() local 201 rem = tmp % parent_rate; in clk_audio_pll_frac_compute_frac() 208 tmp = rem * AUDIO_PLL_DIV_FRAC; in clk_audio_pll_frac_compute_frac()
|
/optee_os/lib/libmbedtls/mbedtls/library/ |
A D | gcm.c | 219 unsigned char lo, hi, rem; in gcm_mult() local 248 rem = (unsigned char) zl & 0xf; in gcm_mult() 251 zh ^= (uint64_t) last4[rem] << 48; in gcm_mult() 257 rem = (unsigned char) zl & 0xf; in gcm_mult() 260 zh ^= (uint64_t) last4[rem] << 48; in gcm_mult()
|