Home
last modified time | relevance | path

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

12345678910>>...38

/external/chromium_org/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/main/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/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>)
12 %x = call double @llvm.sqrt.f64(double %b)
36 %x = call float @llvm.sqrt.f32(float %b)
58 %x = call double @llvm.sqrt.f64(double %b)
84 %x = call float @llvm.sqrt.f32(float %b)
105 %x = call <4 x float> @llvm.sqrt.v4f32(<4 x float> %b)
168 %r = call double @llvm.sqrt.f64(double %a)
195 %r = call float @llvm.sqrt.f32(float %a)
[all …]
/external/stlport/test/unit/
Dresolve_name.cpp12 d = sqrt( d ); in f()
13 d = ::sqrt( d ); in f()
14 d = std::sqrt( d ); in f()
26 d = sqrt( d ); in g()
27 d = ::sqrt( d ); in g()
28 d = std::sqrt( d ); in g()
44 d = sqrt( d ); in h()
45 d = ::sqrt( d ); in h()
46 d = std::sqrt( d ); in h()
55 using std::sqrt; in sqroot()
[all …]
Dcmath_test.cpp80 CPPUNIT_CHECK( are_equals(std::sqrt(4.0), 2.0) ); in import_checks()
114 CPPUNIT_CHECK( are_equals(std::sqrt(4.0f), 2.0f) ); in import_checks()
140 CPPUNIT_CHECK( are_equals(std::sqrt(4.0l), 2.0l) ); in import_checks()
164 CPPUNIT_CHECK( are_equals(std::sqrt(std::sqrt(std::sqrt(256.0))), 2.0) ); in import_checks()
165 CPPUNIT_CHECK( are_equals(std::sqrt(std::sqrt(std::sqrt(256.0f))), 2.0f) ); in import_checks()
167 CPPUNIT_CHECK( are_equals(std::sqrt(std::sqrt(std::sqrt(256.0l))), 2.0l) ); in import_checks()
/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 …]
Dfp-sqrt-03.ll5 declare fp128 @llvm.sqrt.f128(fp128 %f)
17 %sqrt = call fp128 @llvm.sqrt.f128(fp128 %orig)
18 store fp128 %sqrt, fp128 *%ptr
/external/eigen/test/
Dstable_norm.cpp35 using std::sqrt; in stable_norm()
86 VERIFY(!isFinite(sqrt(-abs(big)))); in stable_norm()
89 VERIFY(isFinite(sqrt(size)*abs(big))); in stable_norm()
90 …VERIFY_IS_NOT_APPROX(sqrt(copy(vbig.squaredNorm())), abs(sqrt(size)*big)); // here the default nor… in stable_norm()
91 VERIFY_IS_APPROX(vbig.stableNorm(), sqrt(size)*abs(big)); in stable_norm()
92 VERIFY_IS_APPROX(vbig.blueNorm(), sqrt(size)*abs(big)); in stable_norm()
93 VERIFY_IS_APPROX(vbig.hypotNorm(), sqrt(size)*abs(big)); in stable_norm()
96 VERIFY(isFinite(sqrt(size)*abs(small))); in stable_norm()
97 …VERIFY_IS_NOT_APPROX(sqrt(copy(vsmall.squaredNorm())), abs(sqrt(size)*small)); // here the defau… in stable_norm()
98 VERIFY_IS_APPROX(vsmall.stableNorm(), sqrt(size)*abs(small)); in stable_norm()
[all …]
/external/llvm/test/CodeGen/R600/
Drsq.ll3 declare float @llvm.sqrt.f32(float) nounwind readnone
4 declare double @llvm.sqrt.f64(double) nounwind readnone
11 %sqrt = call float @llvm.sqrt.f32(float %val) nounwind readnone
12 %div = fdiv float 1.0, %sqrt
22 %sqrt = call double @llvm.sqrt.f64(double %val) nounwind readnone
23 %div = fdiv double 1.0, %sqrt
Dllvm.AMDGPU.rcp.ll7 declare float @llvm.sqrt.f32(float) nounwind readnone
8 declare double @llvm.sqrt.f64(double) nounwind readnone
45 %sqrt = call float @llvm.sqrt.f32(float %src) nounwind readnone
46 %rcp = call float @llvm.AMDGPU.rcp.f32(float %sqrt) nounwind readnone
54 %sqrt = call double @llvm.sqrt.f64(double %src) nounwind readnone
55 %rcp = call double @llvm.AMDGPU.rcp.f64(double %sqrt) nounwind readnone
/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/
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
Dfold-sqrt-sqrtf.ll4 ; Instcombine tries to fold (fptrunc (sqrt (fpext x))) -> (sqrtf x), but this
9 ; CHECK: %call = tail call double @sqrt(double %conv)
12 %call = tail call double @sqrt(double %conv)
17 declare double @sqrt(double)
/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/chromium_org/third_party/mesa/src/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/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/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/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/chromium_org/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/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)
/external/llvm/test/CodeGen/X86/
Dbreak-sse-dep.ll30 %t = call float @llvm.sqrt.f32(float %z)
39 %t = call double @llvm.sqrt.f64(double %z)
48 %t = call float @llvm.sqrt.f32(float %z)
57 %t = call double @llvm.sqrt.f64(double %z)
61 declare float @llvm.sqrt.f32(float)
62 declare double @llvm.sqrt.f64(double)

12345678910>>...38