Home
last modified time | relevance | path

Searched refs:ldexp (Results 1 – 22 of 22) sorted by relevance

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_math.py485 mant, exp = int(math.ldexp(mant, mant_dig)), exp - mant_dig
501 return math.ldexp(tmant, texp)
560 self.assertRaises(TypeError, math.ldexp)
561 self.ftest('ldexp(0,1)', math.ldexp(0,1), 0)
562 self.ftest('ldexp(1,1)', math.ldexp(1,1), 2)
563 self.ftest('ldexp(1,-1)', math.ldexp(1,-1), 0.5)
564 self.ftest('ldexp(-1,1)', math.ldexp(-1,1), -2)
565 self.assertRaises(OverflowError, math.ldexp, 1., 1000000)
566 self.assertRaises(OverflowError, math.ldexp, -1., 1000000)
567 self.assertEqual(math.ldexp(1., -1000000), 0.)
[all …]
Dtest_float.py6 from math import isinf, isnan, copysign, ldexp
980 self.identical(self.MIN, ldexp(1.0, -1022))
981 self.identical(self.TINY, ldexp(1.0, -1074))
982 self.identical(self.EPS, ldexp(1.0, -52))
983 self.identical(self.MAX, 2.*(ldexp(1.0, 1023) - ldexp(1.0, 970)))
1376 x = s*ldexp(m, e)
Dtest_long_future.py50 result = math.ldexp(float(q), exp)
Dtest_random.py351 from math import ldexp
366 self.assertEqual(long(ldexp(a, 53)), e)
Dtest_struct.py404 big = math.ldexp(big, 127 - 23)
411 big = math.ldexp(big, 127 - 24)
Dtest_long.py815 f = math.ldexp(f, CHUNK)
/device/linaro/bootloader/edk2/StdLib/LibC/Math/
Ds_ldexp.c23 ldexp(double value, int exp) in ldexp() function
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Include/
Dpymath.h34 extern double ldexp (double, int);
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Include/
Dpymath.h34 extern double ldexp (double, int);
/device/linaro/bootloader/edk2/StdLib/Include/
Dmath.h221 double ldexp(double Value, int Exp);
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
Dfloatobject.c1386 m = ldexp(m, shift); in float_hex()
1625 x = ldexp(x, (int)(exp)); in float_fromhex()
1653 x == ldexp((double)(2*half_eps), DBL_MANT_DIG)) in float_fromhex()
1659 x = ldexp(x, (int)(exp+4*key_digit)); in float_fromhex()
2344 f = ldexp(f, 126 + e); in _PyFloat_Pack4()
2449 f = ldexp(f, 1022 + e); in _PyFloat_Pack8()
2586 x = ldexp(x, e); in _PyFloat_Unpack4()
2681 x = ldexp(x, e); in _PyFloat_Unpack8()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
Dfloatobject.c1371 m = ldexp(m, shift); in float_hex()
1610 x = ldexp(x, (int)(exp)); in float_fromhex()
1638 x == ldexp((double)(2*half_eps), DBL_MANT_DIG)) in float_fromhex()
1644 x = ldexp(x, (int)(exp+4*key_digit)); in float_fromhex()
2329 f = ldexp(f, 126 + e); in _PyFloat_Pack4()
2434 f = ldexp(f, 1022 + e); in _PyFloat_Pack8()
2571 x = ldexp(x, e); in _PyFloat_Unpack4()
2666 x = ldexp(x, e); in _PyFloat_Unpack8()
Dlongobject.c215 frac = ldexp(frac, (expo-1) % PyLong_SHIFT + 1); in PyLong_FromDouble()
220 frac = ldexp(frac, PyLong_SHIFT); in PyLong_FromDouble()
2210 #define EXP2_DBL_MANT_DIG (ldexp(1.0, DBL_MANT_DIG))
2343 return ldexp(x, (int)exponent); in PyLong_AsDouble()
3328 (shift + x_bits > DBL_MAX_EXP || dx == ldexp(1.0, (int)x_bits))) in long_true_divide()
3330 result = ldexp(dx, (int)shift); in long_true_divide()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Daifc.py228 fmant = math.ldexp(fmant, expon)
231 fmant = math.ldexp(fmant, 32)
234 fmant = math.ldexp(fmant - fsmant, 32)
/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/
Dlobject.c152 return l_mathop(ldexp)(r, e); in lua_strx2number()
Dlmathlib.c164 lua_pushnumber(L, l_mathop(ldexp)(x, ep)); in math_ldexp()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/
Dcmathmodule.c541 r.real = log(hypot(ldexp(ax, DBL_MANT_DIG), in c_log()
542 ldexp(ay, DBL_MANT_DIG))) - DBL_MANT_DIG*M_LN2; in c_log()
713 ax = ldexp(ax, CM_SCALE_UP); in c_sqrt()
714 s = ldexp(sqrt(ax + hypot(ax, ldexp(ay, CM_SCALE_UP))), in c_sqrt()
Dmathmodule.c1223 r = ldexp(x, (int)exp); in math_ldexp()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/
Dcmathmodule.c541 r.real = log(hypot(ldexp(ax, DBL_MANT_DIG), in c_log()
542 ldexp(ay, DBL_MANT_DIG))) - DBL_MANT_DIG*M_LN2; in c_log()
713 ax = ldexp(ax, CM_SCALE_UP); in c_sqrt()
714 s = ldexp(sqrt(ax + hypot(ax, ldexp(ay, CM_SCALE_UP))), in c_sqrt()
Dmathmodule.c1223 r = ldexp(x, (int)exp); in math_ldexp()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/PyMod-2.7.2/Objects/
Dlongobject.c215 frac = ldexp(frac, (expo-1) % PyLong_SHIFT + 1); in PyLong_FromDouble()
220 frac = ldexp(frac, PyLong_SHIFT); in PyLong_FromDouble()
2210 #define EXP2_DBL_MANT_DIG (ldexp(1.0, DBL_MANT_DIG))
2343 return ldexp(x, (int)exponent); in PyLong_AsDouble()
3328 (shift + x_bits > DBL_MAX_EXP || dx == ldexp(1.0, (int)x_bits))) in long_true_divide()
3330 result = ldexp(dx, (int)shift); in long_true_divide()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Objects/
Dlongobject.c211 frac = ldexp(frac, (expo-1) % PyLong_SHIFT + 1); in PyLong_FromDouble()
216 frac = ldexp(frac, PyLong_SHIFT); in PyLong_FromDouble()
2224 #define EXP2_DBL_MANT_DIG (ldexp(1.0, DBL_MANT_DIG))
2357 return ldexp(x, (int)exponent); in PyLong_AsDouble()
3342 (shift + x_bits > DBL_MAX_EXP || dx == ldexp(1.0, (int)x_bits))) in long_true_divide()
3344 result = ldexp(dx, (int)shift); in long_true_divide()