Home
last modified time | relevance | path

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

12345678910>>...115

/external/bc/tests/bc/
Dsqrt.txt2 sqrt(0)
3 sqrt(2)
4 sqrt(4)
5 sqrt(9)
6 sqrt(16)
7 sqrt(25)
8 sqrt(121)
9 sqrt(48765)
10 sqrt(9287356207356)
11 sqrt(0.189274385967238956872354)
[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 …]
/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/toybox/tests/files/bc/
Dsqrt.txt2 sqrt(0)
3 sqrt(2)
4 sqrt(4)
5 sqrt(9)
6 sqrt(16)
7 sqrt(25)
8 sqrt(121)
9 sqrt(48765)
10 sqrt(9287356207356)
11 sqrt(0.189274385967238956872354)
[all …]
/external/bc/tests/fuzzing/bc_inputs3/
Dsqrt.txt2 sqrt(0)
3 sqrt(2)
4 sqrt(4)
5 sqrt(9)
6 sqrt(16)
7 sqrt(25)
8 sqrt(121)
9 sqrt(48765)
10 sqrt(9287356207356)
11 sqrt(0.189274385967238956872354)
[all …]
/external/llvm-project/llvm/test/Transforms/InstCombine/
Dfmul-sqrt.ll4 declare double @llvm.sqrt.f64(double) nounwind readnone speculatable
5 declare <2 x float> @llvm.sqrt.v2f32(<2 x float>)
8 ; sqrt(a) * sqrt(b) no math flags
12 ; CHECK-NEXT: [[TMP1:%.*]] = call double @llvm.sqrt.f64(double [[A:%.*]])
13 ; CHECK-NEXT: [[TMP2:%.*]] = call double @llvm.sqrt.f64(double [[B:%.*]])
17 %1 = call double @llvm.sqrt.f64(double %a)
18 %2 = call double @llvm.sqrt.f64(double %b)
23 ; sqrt(a) * sqrt(b) fast-math, multiple uses
27 ; CHECK-NEXT: [[TMP1:%.*]] = call fast double @llvm.sqrt.f64(double [[A:%.*]])
28 ; CHECK-NEXT: [[TMP2:%.*]] = call fast double @llvm.sqrt.f64(double [[B:%.*]])
[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 …]
/external/llvm-project/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 …]
/external/llvm-project/llvm/test/CodeGen/NVPTX/
Dsqrt-approx.ll6 declare float @llvm.sqrt.f32(float)
7 declare double @llvm.sqrt.f64(double)
9 ; -- reciprocal sqrt --
14 %val = tail call float @llvm.sqrt.f32(float %a)
22 %val = tail call float @llvm.sqrt.f32(float %a)
30 %val = tail call double @llvm.sqrt.f64(double %a)
39 %val = tail call double @llvm.sqrt.f64(double %a)
44 ; -- sqrt --
48 ; CHECK: sqrt.rn.f32
49 %ret = tail call float @llvm.sqrt.f32(float %a)
[all …]
Dfast-math.ll3 declare float @llvm.sqrt.f32(float)
4 declare double @llvm.sqrt.f64(double)
7 ; CHECK: sqrt.rn.f32
10 %t1 = tail call float @llvm.sqrt.f32(float %a)
16 ; CHECK: sqrt.rn.f32
19 %t1 = tail call float @llvm.sqrt.f32(float %a)
25 ; CHECK: sqrt.approx.f32
28 %t1 = tail call ninf float @llvm.sqrt.f32(float %a)
34 ; CHECK: sqrt.rn.ftz.f32
37 %t1 = tail call float @llvm.sqrt.f32(float %a)
[all …]
/external/tensorflow/tensorflow/python/training/
Drmsprop_test.py70 mom_t = momentum * mom + lr * g / np.sqrt(denom_t, dtype=denom_t.dtype)
88 mom_t[gindex] = momentum * mom[gindex] + lr * gvalue / np.sqrt(denom_t)
329 1.0 - (0.1 * 2.0 / math.sqrt(0.901 + 1.0)),
330 2.0 - (0.1 * 2.0 / math.sqrt(0.901 + 1.0))
334 3.0 - (0.01 * 2.0 / math.sqrt(0.90001 + 1.0)),
335 4.0 - (0.01 * 2.0 / math.sqrt(0.90001 + 1.0))
349 1.0 - (0.1 * 2.0 / math.sqrt(0.901 + 1.0)) -
350 (0.1 * 2.0 / math.sqrt(0.901 * 0.9 + 0.001 + 1.0)),
351 2.0 - (0.1 * 2.0 / math.sqrt(0.901 + 1.0)) -
352 (0.1 * 2.0 / math.sqrt(0.901 * 0.9 + 0.001 + 1.0))
[all …]
/external/llvm-project/llvm/test/CodeGen/AMDGPU/
Dllvm.amdgcn.sqrt.ll13 %sqrt = call float @llvm.amdgcn.sqrt.f32(float %src)
14 ret float %sqrt
24 %sqrt = call float @llvm.amdgcn.sqrt.f32(float %fabs.src)
25 ret float %sqrt
36 %sqrt = call float @llvm.amdgcn.sqrt.f32(float %neg.fabs.src)
37 ret float %sqrt
46 %sqrt = call double @llvm.amdgcn.sqrt.f64(double %src)
47 ret double %sqrt
57 %sqrt = call double @llvm.amdgcn.sqrt.f64(double %fabs.src)
58 ret double %sqrt
[all …]
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, !fpmath !0
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, !fpmath !0
42 ; not 1 / ( 1 / sqrt(a)) * rcp(b) * c.
44 ; NOTE: c * rcp( sqrt(a) * b ) is generated when we move rcp generation to AMGGPUCogenPrepare.
[all …]
Dfsqrt.ll12 %r1 = call float @llvm.sqrt.f32(float %r0)
21 %r1 = call float @llvm.sqrt.f32(float %r0)
34 %fdiv = call float @llvm.sqrt.f32(float %in)
49 %fdiv = call <2 x float> @llvm.sqrt.v2f32(<2 x float> %in)
70 %fdiv = call <4 x float> @llvm.sqrt.v4f32(<4 x float> %in)
80 %sqrt = call float @llvm.sqrt.f32(float %in)
82 %res = select i1 %cmp, float 0x7FF8000000000000, float %sqrt
92 %sqrt = call float @llvm.sqrt.f32(float %in)
94 %res = select i1 %cmp, float 0x7FF8000000000000, float %sqrt
104 %sqrt = call float @llvm.sqrt.f32(float %in)
[all …]
Dllvm.amdgcn.sqrt.f16.ll11 %sqrt = call half @llvm.amdgcn.sqrt.f16(half %src)
12 ret half %sqrt
22 %sqrt = call half @llvm.amdgcn.sqrt.f16(half %fabs.src)
23 ret half %sqrt
34 %sqrt = call half @llvm.amdgcn.sqrt.f16(half %neg.fabs.src)
35 ret half %sqrt
38 declare half @llvm.amdgcn.sqrt.f16(half) #0
/external/llvm-project/llvm/test/CodeGen/SystemZ/
Dfp-strict-alias.ll5 declare float @llvm.experimental.constrained.sqrt.f32(float, metadata, metadata)
6 declare float @llvm.sqrt.f32(float)
25 %sqrt1 = call float @llvm.sqrt.f32(float %f1)
26 %sqrt2 = call float @llvm.sqrt.f32(float %f2)
42 %sqrt1 = call float @llvm.experimental.constrained.sqrt.f32(
46 %sqrt2 = call float @llvm.experimental.constrained.sqrt.f32(
65 %sqrt1 = call float @llvm.experimental.constrained.sqrt.f32(
69 %sqrt2 = call float @llvm.experimental.constrained.sqrt.f32(
88 %sqrt1 = call float @llvm.experimental.constrained.sqrt.f32(
92 %sqrt2 = call float @llvm.experimental.constrained.sqrt.f32(
[all …]
Dfp-sqrt-02.ll7 declare double @llvm.sqrt.f64(double %f)
8 declare double @sqrt(double)
15 %res = call double @llvm.sqrt.f64(double %val)
25 %res = call double @llvm.sqrt.f64(double %val)
36 %res = call double @llvm.sqrt.f64(double %val)
49 %res = call double @llvm.sqrt.f64(double %val)
61 %res = call double @llvm.sqrt.f64(double %val)
74 %res = call double @llvm.sqrt.f64(double %val)
102 %sqrt0 = call double @llvm.sqrt.f64(double %val0)
103 %sqrt1 = call double @llvm.sqrt.f64(double %val1)
[all …]
Dfp-sqrt-01.ll7 declare float @llvm.sqrt.f32(float)
15 %res = call float @llvm.sqrt.f32(float %val)
25 %res = call float @llvm.sqrt.f32(float %val)
36 %res = call float @llvm.sqrt.f32(float %val)
49 %res = call float @llvm.sqrt.f32(float %val)
61 %res = call float @llvm.sqrt.f32(float %val)
74 %res = call float @llvm.sqrt.f32(float %val)
102 %sqrt0 = call float @llvm.sqrt.f32(float %val0)
103 %sqrt1 = call float @llvm.sqrt.f32(float %val1)
104 %sqrt2 = call float @llvm.sqrt.f32(float %val2)
[all …]
/external/llvm-project/libc/test/src/math/
Dsqrt_test.cpp26 ASSERT_FP_EQ(nan, __llvm_libc::sqrt(nan)); in TEST()
27 ASSERT_FP_EQ(inf, __llvm_libc::sqrt(inf)); in TEST()
28 ASSERT_FP_EQ(nan, __llvm_libc::sqrt(negInf)); in TEST()
29 ASSERT_FP_EQ(0.0, __llvm_libc::sqrt(0.0)); in TEST()
30 ASSERT_FP_EQ(-0.0, __llvm_libc::sqrt(-0.0)); in TEST()
31 ASSERT_FP_EQ(nan, __llvm_libc::sqrt(-1.0)); in TEST()
32 ASSERT_FP_EQ(1.0, __llvm_libc::sqrt(1.0)); in TEST()
33 ASSERT_FP_EQ(2.0, __llvm_libc::sqrt(4.0)); in TEST()
34 ASSERT_FP_EQ(3.0, __llvm_libc::sqrt(9.0)); in TEST()
43 __llvm_libc::sqrt(denormal), 0.5); in TEST()
[all …]
/external/llvm-project/llvm/test/CodeGen/Mips/llvm-ir/
Dsqrt.ll18 ; CHECK: sqrt.s $f0, $f12
22 ; MIPS32: sqrt.s {{.*}} # <MCInst #{{[0-9]+}} FSQRT_S
23 ; MIPS32FP64: sqrt.s {{.*}} # <MCInst #{{[0-9]+}} FSQRT_S
24 ; MM: sqrt.s {{.*}} # <MCInst #{{[0-9]+}} FSQRT_S_MM
25 ; MMFP64: sqrt.s {{.*}} # <MCInst #{{[0-9]+}} FSQRT_S_MM
26 ; MMR6: sqrt.s {{.*}} # <MCInst #{{[0-9]+}} FSQRT_S_MM
27 %ret = call float @llvm.sqrt.f32(float %a)
32 ; MIPS32: sqrt.d {{.*}} # <MCInst #{{[0-9]+}} FSQRT_D32
33 ; MIPS32FP64: sqrt.d {{.*}} # <MCInst #{{[0-9]+}} FSQRT_D64
34 ; MM: sqrt.d {{.*}} # <MCInst #{{[0-9]+}} FSQRT_D32_MM
[all …]
/external/llvm/test/CodeGen/SystemZ/
Dfp-sqrt-02.ll7 declare double @llvm.sqrt.f64(double %f)
8 declare double @sqrt(double)
15 %res = call double @llvm.sqrt.f64(double %val)
25 %res = call double @llvm.sqrt.f64(double %val)
36 %res = call double @llvm.sqrt.f64(double %val)
49 %res = call double @llvm.sqrt.f64(double %val)
61 %res = call double @llvm.sqrt.f64(double %val)
74 %res = call double @llvm.sqrt.f64(double %val)
102 %sqrt0 = call double @llvm.sqrt.f64(double %val0)
103 %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/llvm/test/CodeGen/AMDGPU/
Dfsqrt.ll12 %r1 = call float @llvm.sqrt.f32(float %r0)
21 %r1 = call float @llvm.sqrt.f32(float %r0)
34 %fdiv = call float @llvm.sqrt.f32(float %in)
49 %fdiv = call <2 x float> @llvm.sqrt.v2f32(<2 x float> %in)
70 %fdiv = call <4 x float> @llvm.sqrt.v4f32(<4 x float> %in)
80 %sqrt = call float @llvm.sqrt.f32(float %in)
82 %res = select i1 %cmp, float 0x7FF8000000000000, float %sqrt
92 %sqrt = call float @llvm.sqrt.f32(float %in)
94 %res = select i1 %cmp, float 0x7FF8000000000000, float %sqrt
104 %sqrt = call float @llvm.sqrt.f32(float %in)
[all …]
/external/tensorflow/tensorflow/core/kernels/boosted_trees/quantiles/
Dweighted_quantiles_stream_test.cc172 {0, std::sqrt(0.1), std::sqrt(0.2), std::sqrt(0.3), in TEST()
173 std::sqrt(0.4), std::sqrt(0.5), std::sqrt(0.6), in TEST()
174 std::sqrt(0.7), std::sqrt(0.8), std::sqrt(0.9), 1.0}, in TEST()
251 {0, std::sqrt(0.1), std::sqrt(0.2), std::sqrt(0.3), in TEST()
252 std::sqrt(0.4), std::sqrt(0.5), std::sqrt(0.6), in TEST()
253 std::sqrt(0.7), std::sqrt(0.8), std::sqrt(0.9), 1.0}, in TEST()
/external/llvm/test/CodeGen/AArch64/
Dsqrt-fastmath.ll1 ; RUN: llc < %s -mtriple=aarch64 -mattr=neon -recip=!sqrt,!vec-sqrt | FileCheck %s --check-prefix=F…
2 ; RUN: llc < %s -mtriple=aarch64 -mattr=neon -recip=sqrt,vec-sqrt | FileCheck %s
6 declare float @llvm.sqrt.f32(float) #1
7 declare double @llvm.sqrt.f64(double) #1
8 declare <2 x float> @llvm.sqrt.v2f32(<2 x float>) #1
9 declare <4 x float> @llvm.sqrt.v4f32(<4 x float>) #1
10 declare <2 x double> @llvm.sqrt.v2f64(<2 x double>) #1
13 %1 = tail call fast float @llvm.sqrt.f32(float %a)
27 %1 = tail call fast <2 x float> @llvm.sqrt.v2f32(<2 x float> %a) #2
42 %1 = tail call fast <4 x float> @llvm.sqrt.v4f32(<4 x float> %a) #2
[all …]

12345678910>>...115