Home
last modified time | relevance | path

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

/external/arm-optimized-routines/test/rtest/
Ddotest.c1314 int expdiff = random_upto(101)-51; in atan2_cases() local
1316 if (expdiff < 0) { in atan2_cases()
1317 expdiff = -expdiff; in atan2_cases()
1321 out[swap ^ 0] = random_upto(0x7FEFFFFF-((expdiff+1)<<20)); in atan2_cases()
1322 out[swap ^ 2] = random_upto(((expdiff+1)<<20)-1) + out[swap ^ 0]; in atan2_cases()
1333 int expdiff = random_upto(44)-22; in atan2_cases_float() local
1335 if (expdiff < 0) { in atan2_cases_float()
1336 expdiff = -expdiff; in atan2_cases_float()
1340 out[swap ^ 0] = random_upto(0x7F7FFFFF-((expdiff+1)<<23)); in atan2_cases_float()
1341 out[swap ^ 2] = random_upto(((expdiff+1)<<23)-1) + out[swap ^ 0]; in atan2_cases_float()
/external/python/cpython3/Modules/_decimal/libmpdec/
Dmpdecimal.c3793 mpd_ssize_t ideal_exp, expdiff, shift; in _mpd_qdivmod() local
3808 expdiff = mpd_adjexp(a) - mpd_adjexp(b); in _mpd_qdivmod()
3809 if (expdiff < 0) { in _mpd_qdivmod()
3826 if (expdiff > ctx->prec) { in _mpd_qdivmod()
6802 mpd_ssize_t expdiff, shift; in mpd_qquantize() local
6829 expdiff = a->exp - b->exp; in mpd_qquantize()
6830 if (a->digits + expdiff > ctx->prec) { in mpd_qquantize()
6835 if (expdiff >= 0) { in mpd_qquantize()
6836 shift = expdiff; in mpd_qquantize()
6845 shift = -expdiff; in mpd_qquantize()
[all …]
/external/python/cpython2/Lib/
Ddecimal.py1362 expdiff = self.adjusted() - other.adjusted()
1363 if not self or other._isinfinity() or expdiff <= -2:
1366 if expdiff <= context.prec:
1509 expdiff = self.adjusted() - other.adjusted()
1510 if expdiff >= context.prec + 1:
1513 if expdiff <= -2:
2354 expdiff = context.prec + 1 - len(ans._int)
2355 ans = _dec_from_triple(ans._sign, ans._int+'0'*expdiff,
2356 ans._exp-expdiff)
/external/python/cpython3/Lib/
D_pydecimal.py1391 expdiff = self.adjusted() - other.adjusted()
1392 if not self or other._isinfinity() or expdiff <= -2:
1395 if expdiff <= context.prec:
1535 expdiff = self.adjusted() - other.adjusted()
1536 if expdiff >= context.prec + 1:
1539 if expdiff <= -2:
2466 expdiff = context.prec + 1 - len(ans._int)
2467 ans = _dec_from_triple(ans._sign, ans._int+'0'*expdiff,
2468 ans._exp-expdiff)