Home
last modified time | relevance | path

Searched refs:dividend (Results 1 – 2 of 2) sorted by relevance

/optee_os/lib/libutils/compiler-rt/lib/builtins/
H A Dudivmodti4.c102 utwords dividend; in __udivmodti4() local
103 dividend.all = a; in __udivmodti4()
108 if (divisor.all > dividend.all) { in __udivmodti4()
110 *rem = dividend.all; in __udivmodti4()
116 if (dividend.s.high < divisor.s.low) { in __udivmodti4()
118 quotient.s.low = udiv128by64to64(dividend.s.high, dividend.s.low, in __udivmodti4()
124 quotient.s.high = dividend.s.high / divisor.s.low; in __udivmodti4()
125 dividend.s.high = dividend.s.high % divisor.s.low; in __udivmodti4()
126 quotient.s.low = udiv128by64to64(dividend.s.high, dividend.s.low, in __udivmodti4()
135 __builtin_clzll(divisor.s.high) - __builtin_clzll(dividend.s.high); in __udivmodti4()
[all …]
/optee_os/lib/libmbedtls/mbedtls/library/
H A Dbignum.c1347 mbedtls_t_udbl dividend, quotient; in mbedtls_int_div_int() local
1368 dividend = (mbedtls_t_udbl) u1 << biL; in mbedtls_int_div_int()
1369 dividend |= (mbedtls_t_udbl) u0; in mbedtls_int_div_int()
1370 quotient = dividend / d; in mbedtls_int_div_int()
1376 *r = (mbedtls_mpi_uint) (dividend - (quotient * d)); in mbedtls_int_div_int()