/external/v8/test/mjsunit/ |
D | math-pow.js | 33 assertEquals(4, Math.pow(2, 2)); 34 assertEquals(2147483648, Math.pow(2, 31)); 35 assertEquals(0.25, Math.pow(2, -2)); 36 assertEquals(0.0625, Math.pow(2, -4)); 37 assertEquals(1, Math.pow(1, 100)); 38 assertEquals(0, Math.pow(0, 1000)); 41 assertEquals(NaN, Math.pow(2, NaN)); 42 assertEquals(NaN, Math.pow(+0, NaN)); 43 assertEquals(NaN, Math.pow(-0, NaN)); 44 assertEquals(NaN, Math.pow(Infinity, NaN)); [all …]
|
D | delete.js | 85 assertTrue(delete a[Math.pow(2,31)-1], "delete 2^31-1"); 102 o[Math.pow(2,30)-1] = 0; 103 o[Math.pow(2,31)-1] = 0; 106 assertTrue(delete o[Math.pow(2,30)]); 108 assertFalse(has(o, Math.pow(2,30))); 110 assertTrue(has(o, Math.pow(2,30)-1)); 111 assertTrue(has(o, Math.pow(2,31)-1)); 113 assertTrue(delete o[Math.pow(2,30)-1]); 115 assertFalse(has(o, Math.pow(2,30)-1), "delete 2^30-1"); 116 assertTrue(has(o, Math.pow(2,31)-1)); [all …]
|
D | array-length.js | 77 a[Math.pow(2,31)-1] = 0; 78 a[Math.pow(2,30)-1] = 0; 79 assertEquals(Math.pow(2,31), a.length); 85 a[Math.pow(2,30)-1] = Math.pow(2,30)-1; 86 a[Math.pow(2,31)-1] = Math.pow(2,31)-1; 87 a[Math.pow(2,32)-2] = Math.pow(2,32)-2; 89 assertEquals(Math.pow(2,30)-1, a[Math.pow(2,30)-1]); 90 assertEquals(Math.pow(2,31)-1, a[Math.pow(2,31)-1]); 91 assertEquals(Math.pow(2,32)-2, a[Math.pow(2,32)-2]); 93 assertEquals(Math.pow(2,32)-1, a.length); [all …]
|
D | constant-folding-2.js | 156 assertEquals(1.0, Math.pow(1.0, 0.5)); 158 assertEquals("Infinity", String(Math.pow(Infinity, 0.5))); 160 assertEquals(0, Math.pow(Infinity, -0.5)); 181 assertEquals(Math.pow(2, 52) + 1, Math.round(Math.pow(2, 52) + 1)); 203 assertEquals(Math.pow(2, 52) + 1, Math.floor(Math.pow(2, 52) + 1)); 207 assertEquals(2.25, Math.pow(1.5, 2)); 208 assertTrue(1.8 < Math.pow(1.5, 1.5) && Math.pow(1.5, 1.5) < 1.9); 209 assertEquals("Infinity", String(Math.pow(Infinity, 0.5))); 210 assertEquals("Infinity", String(Math.pow(-Infinity, 0.5))); 211 assertEquals(0, Math.pow(Infinity, -0.5)); [all …]
|
D | in.js | 109 o[Math.pow(2,30)-1] = 0; 110 o[Math.pow(2,31)-1] = 0; 115 assertFalse(Math.pow(2,30)-2 in o); 116 assertTrue(Math.pow(2,30)-1 in o); 117 assertFalse(Math.pow(2,30)-0 in o); 118 assertTrue(Math.pow(2,31)-1 in o); 134 a[Math.pow(2,30)-1] = 0; 135 a[Math.pow(2,31)-1] = 0; 140 assertFalse(Math.pow(2,30)-2 in a, "Math.pow(2,30)-2 in a"); 141 assertTrue(Math.pow(2,30)-1 in a, "Math.pow(2,30)-1 in a"); [all …]
|
D | math-round.js | 153 var ulp = Math.pow(2, -1022 - 52); 154 var max_denormal = (Math.pow(2, 52) - 1) * ulp; 155 var min_normal = Math.pow(2, -1022); 156 var max_fraction = Math.pow(2, 52) - 0.5; 157 var min_nonfraction = Math.pow(2, 52); 160 var max_smi31 = Math.pow(2,30) - 1; 161 var min_smi31 = -Math.pow(2,30); 162 var max_smi32 = Math.pow(2,31) - 1; 163 var min_smi32 = -Math.pow(2,31); 170 testRound(Math.pow(2,52), max_fraction); [all …]
|
D | toint32.js | 86 var base = Math.pow(2, 64); 118 var bignum = Math.pow(2, 84) - Math.pow(2, 31); 119 assertEquals(-Math.pow(2,31), toInt32(bignum)); 120 assertEquals(-Math.pow(2,31), toInt32(-bignum)); 123 assertEquals(0, toInt32(bignum - Math.pow(2,31))); 124 assertEquals(0, toInt32(-(bignum - Math.pow(2,31)))); 127 var max_fraction = (1 - Math.pow(2,-53));
|
/external/ceres-solver/internal/ceres/ |
D | autodiff_test.cc | 392 y[0] = *x0 + pow(*x1, 2); in operator ()() 400 y[0] = *x0 + pow(*x1, 2) + pow(*x2, 3); in operator ()() 412 y[0] = *x0 + pow(*x1, 2) + pow(*x2, 3) + pow(*x3, 4); in operator ()() 425 y[0] = *x0 + pow(*x1, 2) + pow(*x2, 3) + pow(*x3, 4) + pow(*x4, 5); in operator ()() 439 y[0] = *x0 + pow(*x1, 2) + pow(*x2, 3) + pow(*x3, 4) + pow(*x4, 5) + in operator ()() 440 pow(*x5, 6); in operator ()() 455 y[0] = *x0 + pow(*x1, 2) + pow(*x2, 3) + pow(*x3, 4) + pow(*x4, 5) + in operator ()() 456 pow(*x5, 6) + pow(*x6, 7); in operator ()() 472 y[0] = *x0 + pow(*x1, 2) + pow(*x2, 3) + pow(*x3, 4) + pow(*x4, 5) + in operator ()() 473 pow(*x5, 6) + pow(*x6, 7) + pow(*x7, 8); in operator ()() [all …]
|
/external/llvm/test/Transforms/InstCombine/ |
D | pow-4.ll | 1 ; Test that the pow library call simplifier works correctly. 6 declare double @llvm.pow.f64(double, double) 7 declare float @llvm.pow.f32(float, float) 9 ; pow(x, 4.0f) 12 ; CHECK-NOT: pow 16 %1 = call float @llvm.pow.f32(float %x, float 4.000000e+00) 20 ; pow(x, 3.0) 23 ; CHECK-NOT: pow 27 %1 = call double @llvm.pow.f64(double %x, double 3.000000e+00) 31 ; pow(x, 4.0) [all …]
|
D | pow-exp.ll | 6 %pow = call double @llvm.pow.f64(double %call, double %y) 7 ret double %pow 18 %pow = call double @llvm.pow.f64(double %call1, double %p1) 19 ret double %pow 23 ; CHECK: llvm.pow.f64 26 declare double @llvm.pow.f64(double, double)
|
D | pow-exp-nofastmath.ll | 6 %pow = call double @llvm.pow.f64(double %call, double %y) 7 ret double %pow 12 ; CHECK: %pow = call double @llvm.pow.f64(double %call, double %y) 13 ; CHECK: ret double %pow 17 declare double @llvm.pow.f64(double, double)
|
D | pow-1.ll | 1 ; Test that the pow library call simplifier works correctly. 13 ; NOTE: The readonly attribute on the pow call should be preserved 14 ; in the cases below where pow is transformed into another function call. 17 declare double @pow(double, double) nounwind readonly 19 ; Check pow(1.0, x) -> 1.0. 30 %retval = call double @pow(double 1.0, double %x) 35 ; Check pow(2.0, x) -> exp2(x). 47 %retval = call double @pow(double 2.0, double %x) 53 ; Check pow(x, 0.0) -> 1.0. 64 %retval = call double @pow(double %x, double 0.0) [all …]
|
D | log-pow-nofastmath.ll | 5 %pow = call double @llvm.pow.f64(double %x, double %y) 6 %call = call double @log(double %pow) 11 ; CHECK: %pow = call double @llvm.pow.f64(double %x, double %y) 12 ; CHECK: %call = call double @log(double %pow) 30 declare double @llvm.pow.f64(double, double)
|
D | pow-2.ll | 1 ; Test that the pow library call simplifier works correctly. 5 declare float @pow(double, double) 7 ; Check that pow functions with the wrong prototype aren't simplified. 11 %retval = call float @pow(double 1.0, double %x) 12 ; CHECK-NEXT: call float @pow(double 1.000000e+00, double %x)
|
/external/llvm/test/CodeGen/AArch64/ |
D | sincospow-vector-expansion.ll | 24 ; CHECK: bl pow 25 ; CHECK: bl pow 26 %1 = call <2 x double> @llvm.pow.v2f64(<2 x double> %v1, <2 x double> %v2) 33 declare <2 x double> @llvm.pow.v2f64(<2 x double>, <2 x double>) 53 ; CHECK: bl pow 54 ; CHECK: bl pow 55 %1 = call <2 x float> @llvm.pow.v2f32(<2 x float> %v1, <2 x float> %v2) 61 declare <2 x float> @llvm.pow.v2f32(<2 x float>, <2 x float>) 85 ; CHECK: bl pow 86 ; CHECK: bl pow [all …]
|
/external/eigen/unsupported/test/mpreal/ |
D | mpreal.h | 379 friend const mpreal pow (const mpreal& a, const mpreal& b, mp_rnd_t rnd_mode); 380 friend const mpreal pow (const mpreal& a, const mpz_t b, mp_rnd_t rnd_mode); 381 friend const mpreal pow (const mpreal& a, const unsigned long int b, mp_rnd_t rnd_mode); 382 friend const mpreal pow (const mpreal& a, const long int b, mp_rnd_t rnd_mode); 383 friend const mpreal pow (const unsigned long int a, const mpreal& b, mp_rnd_t rnd_mode); 384 … friend const mpreal pow (const unsigned long int a, const unsigned long int b, mp_rnd_t rnd_mode); 862 const mpreal pow(const mpreal& a, const unsigned int b, mp_rnd_t rnd_mode = mpreal::get_default_rnd… 863 const mpreal pow(const mpreal& a, const int b, mp_rnd_t rnd_mode = mpreal::get_default_rnd()); 864 const mpreal pow(const mpreal& a, const long double b, mp_rnd_t rnd_mode = mpreal::get_default_rnd(… 865 const mpreal pow(const mpreal& a, const double b, mp_rnd_t rnd_mode = mpreal::get_default_rnd()); [all …]
|
/external/libcxx/test/std/numerics/complex.number/cmplx.over/ |
D | pow.pass.cpp | 43 static_assert((std::is_same<decltype(std::pow(x, y)), std::complex<V> >::value), ""); in test() 44 assert(std::pow(x, y) == pow(std::complex<V>(x, 0), std::complex<V>(y))); in test() 52 static_assert((std::is_same<decltype(std::pow(x, y)), std::complex<V> >::value), ""); in test() 53 assert(std::pow(x, y) == pow(std::complex<V>(x), std::complex<V>(y, 0))); in test() 61 static_assert((std::is_same<decltype(std::pow(x, y)), std::complex<V> >::value), ""); in test() 62 assert(std::pow(x, y) == pow(std::complex<V>(x), std::complex<V>(y))); in test()
|
/external/guava/guava-tests/test/com/google/common/math/ |
D | BigIntegerMathTest.java | 124 BigInteger x2 = x.pow(2); in testLog2HalfUp() 135 BigInteger x2 = x.pow(2); in testLog2HalfDown() 179 assertTrue(TEN.pow(result).compareTo(x) <= 0); in testLog10Floor() 180 assertTrue(TEN.pow(result + 1).compareTo(x) > 0); in testLog10Floor() 190 assertTrue(TEN.pow(result).compareTo(x) >= 0); in testLog10Ceiling() 191 assertTrue(result == 0 || TEN.pow(result - 1).compareTo(x) < 0); in testLog10Ceiling() 201 boolean expectSuccess = TEN.pow(logFloor).equals(x); in testLog10Exact() 215 BigInteger x2 = x.pow(2); in testLog10HalfUp() 217 assertTrue(TEN.pow(2 * result + 1).compareTo(x2) > 0); in testLog10HalfUp() 219 assertTrue(result == 0 || TEN.pow(2 * result - 1).compareTo(x2) <= 0); in testLog10HalfUp() [all …]
|
/external/pdfium/third_party/lcms2-2.6/src/ |
D | cmscam02.c | 69 return (1.48 + pow(pMod -> n, 0.5)); in compute_z() 75 return (0.725 * pow((1.0 / pMod -> n), 0.2)); in computeNbb() 84 FL = 0.2 * pow(k, 4.0) * (5.0 * pMod->LA) + 0.1 * in computeFL() 85 (pow((1.0 - pow(k, 4.0)), 2.0)) * in computeFL() 86 (pow((5.0 * pMod->LA), (1.0 / 3.0))); in computeFL() 158 temp = pow((-1.0 * pMod->FL * clr.RGBp[i] / 100.0), 0.42); in NonlinearCompression() 162 temp = pow((pMod->FL * clr.RGBp[i] / 100.0), 0.42); in NonlinearCompression() 223 clr.J = 100.0 * pow((clr.A / pMod->adoptedWhite.A), in ComputeCorrelates() 226 clr.Q = (4.0 / pMod->c) * pow((clr.J / 100.0), 0.5) * in ComputeCorrelates() 227 (pMod->adoptedWhite.A + 4.0) * pow(pMod->FL, 0.25); in ComputeCorrelates() [all …]
|
/external/fio/ |
D | tickmarks.c | 23 f = x / pow(10.0, exp); in nicenum() 26 return 1.0 * pow(10.0, exp); in nicenum() 28 return 2.0 * pow(10.0, exp); in nicenum() 30 return 5.0 * pow(10.0, exp); in nicenum() 31 return 10.0 * pow(10.0, exp); in nicenum() 34 return 1.0 * pow(10.0, exp); in nicenum() 36 return 2.0 * pow(10.0, exp); in nicenum() 38 return 5.0 * pow(10.0, exp); in nicenum() 39 return 10.0 * pow(10.0, exp); in nicenum()
|
/external/v8/test/mjsunit/harmony/ |
D | exponentiation-operator.js | 81 Math.pow(3, Math.pow(2, 2))); 85 Math.pow(3, Math.pow(4, 2))); 89 Math.pow(4, Math.pow(3, 2))); 93 Math.pow(2, Math.pow(3, 2))); 255 Math.pow = function(a, b) { function 264 Math.pow = MathPow;
|
/external/fio/lib/ |
D | zipf.c | 29 zs->zetan += pow(1.0 / (double) (i + 1), zs->theta); in zipf_update() 48 zs->zeta2 = pow(1.0, zs->theta) + pow(0.5, zs->theta); in zipf_init() 60 eta = (1.0 - pow(2.0 / n, 1.0 - zs->theta)) / (1.0 - zs->zeta2 / zs->zetan); in zipf_next() 67 else if (rand_z < (1.0 + pow(0.5, zs->theta))) in zipf_next() 70 val = 1 + (unsigned long long)(n * pow(eta*rand_uni - eta + 1.0, alpha)); in zipf_next() 87 return (__hash_u64(n * pow(rand, zs->pareto_pow)) + zs->rand_off) % zs->nranges; in pareto_next()
|
/external/libgdx/gdx/src/com/badlogic/gdx/math/ |
D | Interpolation.java | 135 if (a <= 0.5f) return (float)Math.pow(a * 2, power) / 2; in apply() 136 return (float)Math.pow((a - 1) * 2, power) / (power % 2 == 0 ? -2 : 2) + 1; in apply() 146 return (float)Math.pow(a, power); in apply() 156 return (float)Math.pow(a - 1, power) * (power % 2 == 0 ? -1 : 1) + 1; in apply() 168 min = (float)Math.pow(value, -power); in Exp() 173 if (a <= 0.5f) return ((float)Math.pow(value, power * (a * 2 - 1)) - min) * scale / 2; in apply() 174 return (2 - ((float)Math.pow(value, -power * (a * 2 - 1)) - min) * scale) / 2; in apply() 184 return ((float)Math.pow(value, power * (a - 1)) - min) * scale; in apply() 194 return 1 - ((float)Math.pow(value, -power * a) - min) * scale; in apply() 213 return (float)Math.pow(value, power * (a - 1)) * MathUtils.sin(a * bounces) * scale / 2; in apply() [all …]
|
/external/v8/test/mjsunit/regress/ |
D | regress-397.js | 33 assertEquals("Infinity", String(Math.pow(Infinity, 0.5))); 34 assertEquals(0, Math.pow(Infinity, -0.5)); 36 assertEquals("Infinity", String(Math.pow(-Infinity, 0.5))); 37 assertEquals(0, Math.pow(-Infinity, -0.5));
|
/external/mesa3d/src/glsl/builtins/ir/ |
D | pow.ir | 1 ((function pow 6 ((return (expression float pow (var_ref arg0) (var_ref arg1))))) 12 ((return (expression vec2 pow (var_ref arg0) (var_ref arg1))))) 18 ((return (expression vec3 pow (var_ref arg0) (var_ref arg1))))) 24 ((return (expression vec4 pow (var_ref arg0) (var_ref arg1)))))
|