/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/decimaltestdata/ |
D | exp.decTest | 2 -- exp.decTest -- decimal natural exponentiation -- 32 expx001 exp -Infinity -> 0 33 expx002 exp -10 -> 0.0000453999298 Inexact Rounded 34 expx003 exp -1 -> 0.367879441 Inexact Rounded 35 expx004 exp 0 -> 1 36 expx005 exp -0 -> 1 37 expx006 exp 1 -> 2.71828183 Inexact Rounded 38 expx007 exp 0.693147181 -> 2.00000000 Inexact Rounded 39 expx008 exp 10 -> 22026.4658 Inexact Rounded 40 expx009 exp +Infinity -> Infinity [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/ |
D | test_fpformat.py | 37 num, exp = expected.split("e") 38 if len(exp) < 4: 39 exp = exp[0] + "0" + exp[1:] 40 expected = "%se%s" % (num, exp)
|
D | test_long_future.py | 41 exp = max(d, DBL_MIN_EXP) - DBL_MANT_DIG 42 a, b = a << max(-exp, 0), b << max(exp, 0) 50 result = math.ldexp(float(q), exp) 148 for exp in range(base - 15, base + 15): 149 self.check_truediv(75312*2**max(exp, 0), 69187*2**max(-exp, 0)) 150 self.check_truediv(69187*2**max(exp, 0), 75312*2**max(-exp, 0))
|
D | test_pprint.py | 143 exp = """\ 152 self.assertEqual(pprint.pformat(type(o)), exp) 155 exp = '[%s]' % ',\n '.join(map(str, o)) 157 self.assertEqual(pprint.pformat(type(o)), exp) 160 exp = '(%s)' % ',\n '.join(map(str, o)) 162 self.assertEqual(pprint.pformat(type(o)), exp) 166 exp = '[ %s]' % ',\n '.join(map(str, o)) 168 self.assertEqual(pprint.pformat(type(o), indent=4), exp) 202 exp = """\ 205 self.assertEqual(DottedPrettyPrinter().pformat(o), exp)
|
D | cmath_testcases.txt | 11 -- <function> is the function to be tested (exp, cos, asinh, ...), 1555 -- For exp, cosh, sinh, tanh we limit tests to arguments whose 1566 -- exp: Exponential function -- 1570 exp0000 exp 0.0 0.0 -> 1.0 0.0 1571 exp0001 exp 0.0 -0.0 -> 1.0 -0.0 1572 exp0002 exp -0.0 0.0 -> 1.0 0.0 1573 exp0003 exp -0.0 -0.0 -> 1.0 -0.0 1576 exp0004 exp -17.957359009564684 -1.108613895795274 -> 7.0869292576226611e-09 -1.4225929202377833e-08 1577 exp0005 exp -1.4456149663368642e-15 -0.75359817331772239 -> 0.72923148323917997 -0.68426708517419033 1578 exp0006 exp -0.76008654883512661 -0.46657235480105019 -> 0.41764393109928666 -0.21035108396792854 [all …]
|
D | test_pow.py | 31 exp = -othertype(i/10.0) 32 if exp == 0: 34 self.assertRaises(ZeroDivisionError, pow, zero, exp)
|
D | test_math.py | 102 exp = rhs_pieces[0] 105 yield (id, fn, float(arg), float(exp), flags) 356 self.assertRaises(TypeError, math.exp) 357 self.ftest('exp(-1)', math.exp(-1), 1/math.e) 358 self.ftest('exp(0)', math.exp(0), 1) 359 self.ftest('exp(1)', math.exp(1), math.e) 360 self.assertEqual(math.exp(INF), INF) 361 self.assertEqual(math.exp(NINF), 0.) 362 self.assertTrue(math.isnan(math.exp(NAN))) 443 (mant, exp), (emant, eexp) = result, expected [all …]
|
D | test_strtod.py | 41 exp = int(m.group('exp') or '0') - len(fraction) 43 a, b = intpart*10**max(exp, 0), 10**max(0, -exp)
|
/device/linaro/bootloader/edk2/StdLib/Include/sys/ |
D | EfiCdefs.h | 307 #define __predict_true(exp) __builtin_expect((exp) != 0, 1) argument 308 #define __predict_false(exp) __builtin_expect((exp) != 0, 0) argument 310 #define __predict_true(exp) (exp) argument 311 #define __predict_false(exp) (exp) argument
|
/device/google/dragon/audio/hal/dsp/ |
D | drc_math.h | 114 int exp = u.ieee.exponent; in frexpf_fast() 115 if (exp == 0xff) in frexpf_fast() 117 *e = exp - 126; in frexpf_fast() 135 float exp = e; in linear_to_decibels() local 139 exp += 0.5f; in linear_to_decibels() 156 + exp * 6.0205999132796239f; in linear_to_decibels()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/ |
D | decimal.py | 558 exp = int(m.group('exp') or '0') 560 self._exp = exp - len(fracpart) 601 self._exp = int(value.exp) 708 exp = self._exp 709 if exp == 'n': 711 elif exp == 'N': 978 return hash((-1)**op.sign*op.int*pow(10, op.exp, 2**64-1)) 1043 exp = '' 1047 exp = ['e', 'E'][context.capitals] + "%+d" % (leftdigits-dotplace) 1049 return sign + intpart + fracpart + exp [all …]
|
D | fractions.py | 137 exp = m.group('exp') 138 if exp: 139 exp = int(exp) 140 if exp >= 0: 141 numerator *= 10**exp 143 denominator *= 10**-exp 197 sign, digits, exp = dec.as_tuple() 201 if exp >= 0: 202 return cls(digits * 10 ** exp) 204 return cls(digits, 10 ** -exp)
|
/device/linaro/bootloader/edk2/StdLib/LibC/Math/ |
D | s_ldexp.c | 23 ldexp(double value, int exp) in ldexp() argument 26 value = scalbn(value,exp); in ldexp()
|
D | w_exp.c | 30 exp(double x) /* wrapper exp */ in exp() function
|
/device/generic/goldfish/libqemu/ |
D | test_host_2.c | 36 #define TEMP_FAILURE_RETRY(exp) ({ \ argument 37 typeof (exp) _rc; \ 39 _rc = (exp); \
|
D | test_host_1.c | 38 #define TEMP_FAILURE_RETRY(exp) ({ \ argument 39 typeof (exp) _rc; \ 41 _rc = (exp); \
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/json/ |
D | scanner.py | 50 integer, frac, exp = m.groups() 51 if frac or exp: 52 res = parse_float(integer + (frac or '') + (exp or ''))
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/json/ |
D | scanner.py | 50 integer, frac, exp = m.groups() 51 if frac or exp: 52 res = parse_float(integer + (frac or '') + (exp or ''))
|
/device/linaro/bootloader/arm-trusted-firmware/include/stdlib/sys/ |
D | cdefs.h | 371 #define __predict_true(exp) __builtin_expect((exp), 1) argument 372 #define __predict_false(exp) __builtin_expect((exp), 0) argument 374 #define __predict_true(exp) (exp) argument 375 #define __predict_false(exp) (exp) argument
|
/device/google/contexthub/firmware/lib/libm/ |
D | wf_exp.c | 94 double exp(double x) in exp() function 96 double exp(x) in exp()
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/ |
D | _math.c | 178 u = exp(x); in _Py_expm1() 185 return exp(x) - 1.0; in _Py_expm1()
|
D | mathmodule.c | 297 r = -pi / sinpi(absx) / absx * exp(y) / lanczos_sum(absx); in m_tgamma() 309 r = lanczos_sum(absx) / exp(y); in m_tgamma() 444 result = acc * x * exp(-x2) / sqrtpi; in m_erf_series() 483 result = p / q * x * exp(-x2) / sqrtpi; in m_erfc_contfrac() 837 FUNC1(exp, exp, 1, 1187 long exp; in math_ldexp() local 1195 exp = PyLong_AsLongAndOverflow(oexp, &overflow); in math_ldexp() 1196 if (exp == -1 && PyErr_Occurred()) in math_ldexp() 1199 exp = overflow < 0 ? LONG_MIN : LONG_MAX; in math_ldexp() 1212 } else if (exp > INT_MAX) { in math_ldexp() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/ |
D | _math.c | 178 u = exp(x); in _Py_expm1() 185 return exp(x) - 1.0; in _Py_expm1()
|
D | mathmodule.c | 297 r = -pi / sinpi(absx) / absx * exp(y) / lanczos_sum(absx); in m_tgamma() 309 r = lanczos_sum(absx) / exp(y); in m_tgamma() 444 result = acc * x * exp(-x2) / sqrtpi; in m_erf_series() 483 result = p / q * x * exp(-x2) / sqrtpi; in m_erfc_contfrac() 837 FUNC1(exp, exp, 1, 1187 long exp; in math_ldexp() local 1195 exp = PyLong_AsLongAndOverflow(oexp, &overflow); in math_ldexp() 1196 if (exp == -1 && PyErr_Occurred()) in math_ldexp() 1199 exp = overflow < 0 ? LONG_MIN : LONG_MAX; in math_ldexp() 1212 } else if (exp > INT_MAX) { in math_ldexp() [all …]
|
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/ |
D | pystrtod.c | 746 int t, exp; in PyOS_double_to_string() local 831 frexp(val, &exp); in PyOS_double_to_string() 832 bufsize += exp/3; in PyOS_double_to_string() 946 int decpt_as_int, sign, exp_len, exp = 0, use_exp = 0; in format_float_short() local 1074 exp = decpt - 1; in format_float_short() 1168 exp_len = sprintf(p, "%+.02d", exp); in format_float_short()
|