Home
last modified time | relevance | path

Searched refs:sqrt (Results 1 – 25 of 816) sorted by relevance

12345678910>>...33

/external/v8/test/webkit/
Ddfg-sqrt-backwards-propagation-expected.txt24 Tests that the DFG knows that a function that appears like Math.sqrt could potentially use value in…
29 PASS foo(Math.sqrt, [1.5], 0) is Math.sqrt(1.5)
30 PASS foo(Math.sqrt, [1.5], 0) is Math.sqrt(1.5)
31 PASS foo(Math.sqrt, [1.5], 0) is Math.sqrt(1.5)
32 PASS foo(Math.sqrt, [1.5], 0) is Math.sqrt(1.5)
33 PASS foo(Math.sqrt, [1.5], 0) is Math.sqrt(1.5)
34 PASS foo(Math.sqrt, [1.5], 0) is Math.sqrt(1.5)
35 PASS foo(Math.sqrt, [1.5], 0) is Math.sqrt(1.5)
36 PASS foo(Math.sqrt, [1.5], 0) is Math.sqrt(1.5)
37 PASS foo(Math.sqrt, [1.5], 0) is Math.sqrt(1.5)
[all …]
Ddfg-proven-sqrt-backwards-propagation-expected.txt24 Tests that the DFG knows that a Math.sqrt could potentially use value in arbitrary ways, and not ju…
29 PASS foo(array, 0) is Math.sqrt(1.5)
30 PASS foo(array, 0) is Math.sqrt(1.5)
31 PASS foo(array, 0) is Math.sqrt(1.5)
32 PASS foo(array, 0) is Math.sqrt(1.5)
33 PASS foo(array, 0) is Math.sqrt(1.5)
34 PASS foo(array, 0) is Math.sqrt(1.5)
35 PASS foo(array, 0) is Math.sqrt(1.5)
36 PASS foo(array, 0) is Math.sqrt(1.5)
37 PASS foo(array, 0) is Math.sqrt(1.5)
[all …]
/external/valgrind/none/tests/mips32/
DFPUarithmetic.stdout.exp-mips321003 sqrt.s 0.000000 0.000000
1004 sqrt.s 21.360010 456.250000
1005 sqrt.s 1.732051 3.000000
1006 sqrt.s nan -1.000000
1007 sqrt.s 37.208870 1384.500000
1008 sqrt.s nan -7.250000
1009 sqrt.s 31622.777344 1000000000.000000
1010 sqrt.s nan -5786.500000
1011 sqrt.s 41.856899 1752.000000
1012 sqrt.s 0.125000 0.015625
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/ode/nonstiff/
DDormandPrince853Integrator.java64 …(12.0 - 2.0 * FastMath.sqrt(6.0)) / 135.0, (6.0 - FastMath.sqrt(6.0)) / 45.0, (6.0 - FastMath.sqrt
65 (6.0 + FastMath.sqrt(6.0)) / 30.0, 1.0/3.0, 1.0/4.0, 4.0/13.0, 127.0/195.0, 3.0/5.0,
73 {(12.0 - 2.0 * FastMath.sqrt(6.0)) / 135.0},
76 {(6.0 - FastMath.sqrt(6.0)) / 180.0, (6.0 - FastMath.sqrt(6.0)) / 60.0},
79 {(6.0 - FastMath.sqrt(6.0)) / 120.0, 0.0, (6.0 - FastMath.sqrt(6.0)) / 40.0},
82 {(462.0 + 107.0 * FastMath.sqrt(6.0)) / 3000.0, 0.0,
83 (-402.0 - 197.0 * FastMath.sqrt(6.0)) / 1000.0, (168.0 + 73.0 * FastMath.sqrt(6.0)) / 375.0},
86 … {1.0 / 27.0, 0.0, 0.0, (16.0 + FastMath.sqrt(6.0)) / 108.0, (16.0 - FastMath.sqrt(6.0)) / 108.0},
89 {19.0 / 512.0, 0.0, 0.0, (118.0 + 23.0 * FastMath.sqrt(6.0)) / 1024.0,
90 (118.0 - 23.0 * FastMath.sqrt(6.0)) / 1024.0, -9.0 / 512.0},
[all …]
DGillIntegrator.java57 { (FastMath.sqrt(2.0) - 1.0) / 2.0, (2.0 - FastMath.sqrt(2.0)) / 2.0 },
58 { 0.0, -FastMath.sqrt(2.0) / 2.0, (2.0 + FastMath.sqrt(2.0)) / 2.0 }
63 1.0 / 6.0, (2.0 - FastMath.sqrt(2.0)) / 6.0, (2.0 + FastMath.sqrt(2.0)) / 6.0, 1.0 / 6.0
/external/apache-commons-math/src/main/java/org/apache/commons/math/analysis/integration/
DLegendreGaussIntegrator.java58 -1.0 / FastMath.sqrt(3.0),
59 1.0 / FastMath.sqrt(3.0)
70 -FastMath.sqrt(0.6),
72 FastMath.sqrt(0.6)
84 -FastMath.sqrt((15.0 + 2.0 * FastMath.sqrt(30.0)) / 35.0),
85 -FastMath.sqrt((15.0 - 2.0 * FastMath.sqrt(30.0)) / 35.0),
86 FastMath.sqrt((15.0 - 2.0 * FastMath.sqrt(30.0)) / 35.0),
87 FastMath.sqrt((15.0 + 2.0 * FastMath.sqrt(30.0)) / 35.0)
92 (90.0 - 5.0 * FastMath.sqrt(30.0)) / 180.0,
93 (90.0 + 5.0 * FastMath.sqrt(30.0)) / 180.0,
[all …]
/external/llvm/test/CodeGen/PowerPC/
Dvec_sqrt.ll3 ; Check for vector sqrt expansion using floating-point types, since altivec
9 declare <2 x float> @llvm.sqrt.v2f32(<2 x float> %val)
10 declare <4 x float> @llvm.sqrt.v4f32(<4 x float> %val)
11 declare <8 x float> @llvm.sqrt.v8f32(<8 x float> %val)
12 declare <2 x double> @llvm.sqrt.v2f64(<2 x double> %val)
13 declare <4 x double> @llvm.sqrt.v4f64(<4 x double> %val)
17 %sqrt = call <2 x float> @llvm.sqrt.v2f32 (<2 x float> %x)
18 ret <2 x float> %sqrt
20 ; sqrt (<2 x float>) is promoted to sqrt (<4 x float>)
29 %sqrt = call <4 x float> @llvm.sqrt.v4f32 (<4 x float> %x)
[all …]
Drecipest.ll6 declare double @llvm.sqrt.f64(double)
7 declare float @llvm.sqrt.f32(float)
8 declare <4 x float> @llvm.sqrt.v4f32(<4 x float>)
11 %x = call double @llvm.sqrt.f64(double %b)
34 %x = call float @llvm.sqrt.f32(float %b)
55 %x = call double @llvm.sqrt.f64(double %b)
80 %x = call float @llvm.sqrt.f32(float %b)
100 ; not 1 / ( 1 / sqrt(a)) * rcp(b) * c.
102 %x = call float @llvm.sqrt.f32(float %a)
128 %x = call <4 x float> @llvm.sqrt.v4f32(<4 x float> %b)
[all …]
/external/llvm/test/CodeGen/SystemZ/
Dfp-sqrt-02.ll5 declare double @llvm.sqrt.f64(double %f)
6 declare double @sqrt(double)
13 %res = call double @llvm.sqrt.f64(double %val)
23 %res = call double @llvm.sqrt.f64(double %val)
34 %res = call double @llvm.sqrt.f64(double %val)
47 %res = call double @llvm.sqrt.f64(double %val)
59 %res = call double @llvm.sqrt.f64(double %val)
72 %res = call double @llvm.sqrt.f64(double %val)
100 %sqrt0 = call double @llvm.sqrt.f64(double %val0)
101 %sqrt1 = call double @llvm.sqrt.f64(double %val1)
[all …]
Dfp-sqrt-01.ll5 declare float @llvm.sqrt.f32(float)
13 %res = call float @llvm.sqrt.f32(float %val)
23 %res = call float @llvm.sqrt.f32(float %val)
34 %res = call float @llvm.sqrt.f32(float %val)
47 %res = call float @llvm.sqrt.f32(float %val)
59 %res = call float @llvm.sqrt.f32(float %val)
72 %res = call float @llvm.sqrt.f32(float %val)
100 %sqrt0 = call float @llvm.sqrt.f32(float %val0)
101 %sqrt1 = call float @llvm.sqrt.f32(float %val1)
102 %sqrt2 = call float @llvm.sqrt.f32(float %val2)
[all …]
/external/eigen/test/
Dstable_norm.cpp30 using std::sqrt; in stable_norm()
81 VERIFY(!isFinite(sqrt(-abs(big)))); in stable_norm()
84 VERIFY(isFinite(sqrt(size)*abs(big))); in stable_norm()
85 …VERIFY_IS_NOT_APPROX(sqrt(copy(vbig.squaredNorm())), abs(sqrt(size)*big)); // here the default nor… in stable_norm()
86 VERIFY_IS_APPROX(vbig.stableNorm(), sqrt(size)*abs(big)); in stable_norm()
87 VERIFY_IS_APPROX(vbig.blueNorm(), sqrt(size)*abs(big)); in stable_norm()
88 VERIFY_IS_APPROX(vbig.hypotNorm(), sqrt(size)*abs(big)); in stable_norm()
91 VERIFY(isFinite(sqrt(size)*abs(small))); in stable_norm()
92 …VERIFY_IS_NOT_APPROX(sqrt(copy(vsmall.squaredNorm())), abs(sqrt(size)*small)); // here the defau… in stable_norm()
93 VERIFY_IS_APPROX(vsmall.stableNorm(), sqrt(size)*abs(small)); in stable_norm()
[all …]
/external/ceres-solver/internal/ceres/
Dcorrector_test.cc59 double residuals = sqrt(3.0); in TEST()
72 residuals * sqrt(kRho[1]) / (1 - kAlpha); in TEST()
76 const double kExpectedJacobian = sqrt(kRho[1]) * (1 - kAlpha) * jacobian; in TEST()
100 const double kExpectedResidual = residuals * sqrt(kRho[1]); in TEST()
104 const double kExpectedJacobian = sqrt(kRho[1]) * jacobian; in TEST()
115 double residuals = sqrt(3.0); in TEST()
127 residuals * sqrt(kRho[1]) / (1.0 - kAlpha); in TEST()
131 const double kExpectedJacobian = sqrt(kRho[1]) * in TEST()
187 const double kAlpha = (rho[2] > 0.0) ? 1 - sqrt(kD) : 0.0; in TEST()
190 g_res = sqrt(rho[1]) / (1.0 - kAlpha) * res; in TEST()
[all …]
Dtrust_region_minimizer_test.cc103 const double f2 = sqrt(5.0) * (x3 - x4); in Evaluate()
105 const double f4 = sqrt(10.0) * pow(x1 - x4, 2.0); in Evaluate()
138 sqrt(10.0) * 2.0 * (x1 - x4) * (1.0 - x4); in Evaluate()
151 sqrt(5.0), in Evaluate()
159 -sqrt(5.0), in Evaluate()
161 sqrt(10.0) * 2.0 * (x1 - x4) * (x1 - 1.0); in Evaluate()
169 gradient[column_index++] = f1 + f4 * sqrt(10.0) * 2.0 * (x1 - x4); in Evaluate()
178 f2 * sqrt(5.0) + f3 * (2.0 * 2.0 * (2.0 * x3 - x2)); in Evaluate()
183 -f2 * sqrt(5.0) + f4 * sqrt(10.0) * 2.0 * (x4 - x1); in Evaluate()
329 residuals[0] -= sqrt(length); in Evaluate()
[all …]
/external/llvm/test/Transforms/InstCombine/
Dfmul.ll128 ; With unsafe/fast math, sqrt(X) * sqrt(X) is just X.
129 declare double @llvm.sqrt.f64(double)
132 %sqrt = call double @llvm.sqrt.f64(double %f)
133 %mul = fmul fast double %sqrt, %sqrt
139 ; With unsafe/fast math, sqrt(X) * sqrt(X) is just X,
140 ; but make sure another use of the sqrt is intact.
146 %sqrt = call double @llvm.sqrt.f64(double %f)
147 %mul1 = fmul fast double %sqrt, %sqrt
148 %mul2 = fmul double %mul1, %sqrt
151 ; CHECK-NEXT: %sqrt = call double @llvm.sqrt.f64(double %f)
[all …]
Dsqrt.ll7 ; CHECK-NOT: sqrt(
11 %call = tail call double @sqrt(double %conv) readnone nounwind ; <double> [#uses=1]
22 ; CHECK-NOT: sqrt(
26 %call = tail call double @sqrt(double %conv) nounwind ; <double> [#uses=1]
33 ; Can't fold (fptrunc (sqrt (fpext x))) -> (sqrtf x) since there is another
34 ; use of sqrt result.
38 ; CHECK: sqrt(
46 %call34 = call double @sqrt(double %conv) readnone
54 declare double @sqrt(double) readnone
Dfast-math.ll561 ; tests to just specify 'fast' on the sqrt.
565 declare double @llvm.sqrt.f64(double)
569 %sqrt = call double @llvm.sqrt.f64(double %mul)
570 ret double %sqrt
583 %sqrt = call double @llvm.sqrt.f64(double %mul2)
584 ret double %sqrt
588 ; CHECK-NEXT: %sqrt1 = call double @llvm.sqrt.f64(double %y)
596 %sqrt = call double @llvm.sqrt.f64(double %mul2)
597 ret double %sqrt
601 ; CHECK-NEXT: %sqrt1 = call double @llvm.sqrt.f64(double %y)
[all …]
/external/llvm/test/CodeGen/R600/
Drsq.ll5 declare float @llvm.sqrt.f32(float) nounwind readnone
6 declare double @llvm.sqrt.f64(double) nounwind readnone
13 %sqrt = call float @llvm.sqrt.f32(float %val) nounwind readnone
14 %div = fdiv float 1.0, %sqrt
25 %sqrt = call double @llvm.sqrt.f64(double %val) nounwind readnone
26 %div = fdiv double 1.0, %sqrt
35 %sqrt = call float @llvm.sqrt.f32(float %val) nounwind readnone
36 %div = fdiv float 1.0, %sqrt
42 ; not 1 / ( 1 / sqrt(a)) * rcp(b) * c.
69 %x = call float @llvm.sqrt.f32(float %a)
/external/eigen/unsupported/doc/examples/
DMatrixLogarithm.cpp8 using std::sqrt; in main()
10 A << 0.5*sqrt(2), -0.5*sqrt(2), 0, in main()
11 0.5*sqrt(2), 0.5*sqrt(2), 0, in main()
/external/eigen/Eigen/src/Core/
DStableNorm.h54 using std::sqrt; in blueNorm_impl()
89 relerr = sqrt(eps); // tolerance for neglecting asml in blueNorm_impl()
106 abig = sqrt(abig); in blueNorm_impl()
114 amed = sqrt(amed); in blueNorm_impl()
123 abig = sqrt(amed); in blueNorm_impl()
124 amed = sqrt(asml) / s1m; in blueNorm_impl()
127 return sqrt(asml)/s1m; in blueNorm_impl()
130 return sqrt(amed); in blueNorm_impl()
136 return abig * sqrt(RealScalar(1) + numext::abs2(asml/abig)); in blueNorm_impl()
156 using std::sqrt; in stableNorm()
[all …]
/external/mesa3d/src/glsl/builtins/ir/
Dsqrt.ir1 ((function sqrt
5 ((return (expression float sqrt (var_ref arg0)))))
10 ((return (expression vec2 sqrt (var_ref arg0)))))
15 ((return (expression vec3 sqrt (var_ref arg0)))))
20 ((return (expression vec4 sqrt (var_ref arg0)))))
/external/llvm/test/CodeGen/X86/
Dsqrt-fastmath.ll2 ; RUN: llc < %s -mtriple=x86_64-unknown-unknown -mattr=avx,use-sqrt-est | FileCheck %s --check-pref…
7 declare float @llvm.sqrt.f32(float) #0
8 declare <4 x float> @llvm.sqrt.v4f32(<4 x float>) #0
9 declare <8 x float> @llvm.sqrt.v8f32(<8 x float>) #0
86 %sqrt = tail call float @llvm.sqrt.f32(float %x)
87 %div = fdiv fast float 1.0, %sqrt
108 %sqrt = tail call <4 x float> @llvm.sqrt.v4f32(<4 x float> %x)
109 %div = fdiv fast <4 x float> <float 1.0, float 1.0, float 1.0, float 1.0>, %sqrt
133 %sqrt = tail call <8 x float> @llvm.sqrt.v8f32(<8 x float> %x)
134 …at> <float 1.0, float 1.0, float 1.0, float 1.0, float 1.0, float 1.0, float 1.0, float 1.0>, %sqrt
/external/llvm/test/CodeGen/Mips/
Doptimize-fp-math.ll6 ; 32: sqrt.s $f[[R0:[0-9]+]], $f{{[0-9]+}}
9 ; 64: sqrt.s $f[[R0:[0-9]+]], $f{{[0-9]+}}
21 ; 32: sqrt.d $f[[R0:[0-9]+]], $f{{[0-9]+}}
24 ; 64: sqrt.d $f[[R0:[0-9]+]], $f{{[0-9]+}}
29 %call = tail call double @sqrt(double %a)
33 declare double @sqrt(double)
/external/v8/test/mjsunit/
Dconstant-folding-2.js148 assertEquals(1.0, Math.sqrt(1.0));
149 assertEquals("NaN", String(Math.sqrt(-1.0)));
150 assertEquals("Infinity", String(Math.sqrt(Infinity)));
151 assertEquals("NaN", String(Math.sqrt(-Infinity)));
152 assertEquals("NaN", String(Math.sqrt(NaN)));
157 assertEquals("NaN", String(Math.sqrt(-1.0)));
159 assertEquals("NaN", String(Math.sqrt(-Infinity, 0.5)));
161 assertEquals("NaN", String(Math.sqrt(-Infinity, -0.5)));
162 assertEquals("NaN", String(Math.sqrt(NaN, 0.5)));
/external/llvm/test/Transforms/PartiallyInlineLibCalls/
Dbad-prototype.ll5 declare i32 @sqrt()
9 ; CHECK: call{{.*}}@sqrt
10 ; CHECK-NOT: call{{.*}}@sqrt
11 %r = call i32 @sqrt()
/external/llvm/test/CodeGen/NVPTX/
Dfast-math.ll4 declare float @llvm.nvvm.sqrt.f(float)
8 ; CHECK: sqrt.rn.f32
11 %t1 = tail call float @llvm.nvvm.sqrt.f(float %a)
17 ; CHECK: sqrt.approx.f32
20 %t1 = tail call float @llvm.nvvm.sqrt.f(float %a)

12345678910>>...33