Home
last modified time | relevance | path

Searched refs:quotient (Results 1 – 4 of 4) sorted by relevance

/optee_os/lib/libutils/compiler-rt/lib/builtins/
H A Dudivmodti4.c106 utwords quotient; in __udivmodti4() local
118 quotient.s.low = udiv128by64to64(dividend.s.high, dividend.s.low, in __udivmodti4()
120 quotient.s.high = 0; in __udivmodti4()
124 quotient.s.high = dividend.s.high / divisor.s.low; in __udivmodti4()
126 quotient.s.low = udiv128by64to64(dividend.s.high, dividend.s.low, in __udivmodti4()
131 return quotient.all; in __udivmodti4()
137 quotient.s.high = 0; in __udivmodti4()
138 quotient.s.low = 0; in __udivmodti4()
140 quotient.s.low <<= 1; in __udivmodti4()
149 quotient.s.low |= s & 1; in __udivmodti4()
[all …]
H A Dint_div_impl.inc79 s_a ^= s_b; // sign of quotient
/optee_os/lib/libutils/isoc/arch/arm/
H A Darm32_aeabi_divmod.c54 signed ret_idivmod_values(signed quotient, signed remainder);
55 unsigned ret_uidivmod_values(unsigned quotient, unsigned remainder);
/optee_os/lib/libmbedtls/mbedtls/library/
H A Dbignum.c1347 mbedtls_t_udbl dividend, quotient; in mbedtls_int_div_int() local
1351 mbedtls_mpi_uint d0, d1, q0, q1, rAX, r0, quotient; in mbedtls_int_div_int()
1370 quotient = dividend / d; in mbedtls_int_div_int()
1371 if (quotient > ((mbedtls_t_udbl) 1 << biL) - 1) { in mbedtls_int_div_int()
1372 quotient = ((mbedtls_t_udbl) 1 << biL) - 1; in mbedtls_int_div_int()
1376 *r = (mbedtls_mpi_uint) (dividend - (quotient * d)); in mbedtls_int_div_int()
1379 return (mbedtls_mpi_uint) quotient; in mbedtls_int_div_int()
1435 quotient = q1 * radix + q0; in mbedtls_int_div_int()
1437 return quotient; in mbedtls_int_div_int()