Home
last modified time | relevance | path

Searched refs:sqrtf (Results 1 – 25 of 303) sorted by relevance

12345678910>>...13

/external/eigen/unsupported/test/
Dcxx11_tensor_fixed_size.cpp40 VERIFY_IS_APPROX(scalar3(), sqrtf(7.0)); in test_0d()
41 VERIFY_IS_APPROX(scalar4(), sqrtf(13.0)); in test_0d()
83 VERIFY_IS_APPROX(vec3(0), sqrtf(4.0)); in test_1d()
84 VERIFY_IS_APPROX(vec3(1), sqrtf(8.0)); in test_1d()
85 VERIFY_IS_APPROX(vec3(2), sqrtf(15.0)); in test_1d()
86 VERIFY_IS_APPROX(vec3(3), sqrtf(16.0)); in test_1d()
87 VERIFY_IS_APPROX(vec3(4), sqrtf(23.0)); in test_1d()
88 VERIFY_IS_APPROX(vec3(5), sqrtf(42.0)); in test_1d()
90 VERIFY_IS_APPROX(vec4(0), sqrtf(0.0)); in test_1d()
91 VERIFY_IS_APPROX(vec4(1), sqrtf(1.0)); in test_1d()
[all …]
Dcxx11_tensor_mixed_indices.cpp34 VERIFY_IS_APPROX(vec3(0), sqrtf(4.0)); in test_simple()
35 VERIFY_IS_APPROX(vec3(1), sqrtf(8.0)); in test_simple()
36 VERIFY_IS_APPROX(vec3(2), sqrtf(15.0)); in test_simple()
37 VERIFY_IS_APPROX(vec3(3), sqrtf(16.0)); in test_simple()
38 VERIFY_IS_APPROX(vec3(4), sqrtf(23.0)); in test_simple()
39 VERIFY_IS_APPROX(vec3(5), sqrtf(42.0)); in test_simple()
Dcxx11_tensor_expr.cpp39 VERIFY_IS_APPROX(vec3(0), sqrtf(4.0)); in test_1d()
40 VERIFY_IS_APPROX(vec3(1), sqrtf(8.0)); in test_1d()
41 VERIFY_IS_APPROX(vec3(2), sqrtf(15.0)); in test_1d()
42 VERIFY_IS_APPROX(vec3(3), sqrtf(16.0)); in test_1d()
43 VERIFY_IS_APPROX(vec3(4), sqrtf(23.0)); in test_1d()
44 VERIFY_IS_APPROX(vec3(5), sqrtf(42.0)); in test_1d()
152 VERIFY_IS_APPROX(mat6(i,j,k), sqrtf(val) * 3.14f); in test_3d()
/external/llvm-project/libc/test/src/math/
Dsqrtf_test.cpp26 ASSERT_FP_EQ(nan, __llvm_libc::sqrtf(nan)); in TEST()
27 ASSERT_FP_EQ(inf, __llvm_libc::sqrtf(inf)); in TEST()
28 ASSERT_FP_EQ(nan, __llvm_libc::sqrtf(negInf)); in TEST()
29 ASSERT_FP_EQ(0.0f, __llvm_libc::sqrtf(0.0f)); in TEST()
30 ASSERT_FP_EQ(-0.0f, __llvm_libc::sqrtf(-0.0f)); in TEST()
31 ASSERT_FP_EQ(nan, __llvm_libc::sqrtf(-1.0f)); in TEST()
32 ASSERT_FP_EQ(1.0f, __llvm_libc::sqrtf(1.0f)); in TEST()
33 ASSERT_FP_EQ(2.0f, __llvm_libc::sqrtf(4.0f)); in TEST()
34 ASSERT_FP_EQ(3.0f, __llvm_libc::sqrtf(9.0f)); in TEST()
43 __llvm_libc::sqrtf(denormal), 0.5); in TEST()
[all …]
/external/llvm-project/llvm/test/Other/X86/
Ddebugcounter-partiallyinlinelibcalls.ll10 ; CHECK-NEXT: [[RES:%.*]] = tail call float @sqrtf(float [[VAL:%.*]])
13 %res = tail call float @sqrtf(float %val)
20 ; CHECK-NEXT: [[RES:%.*]] = tail call float @sqrtf(float [[VAL:%.*]]) #0
24 ; CHECK-NEXT: [[TMP1:%.*]] = tail call float @sqrtf(float [[VAL]])
30 %res = tail call float @sqrtf(float %val)
37 ; CHECK-NEXT: [[RES:%.*]] = tail call float @sqrtf(float [[VAL:%.*]])
40 %res = tail call float @sqrtf(float %val)
44 declare float @sqrtf(float)
/external/XNNPACK/src/f32-vsqrt/gen/
Dscalar-sqrt-x4.c33 const float vy0 = sqrtf(vx0); in xnn_f32_vsqrt_ukernel__scalar_sqrt_x4()
34 const float vy1 = sqrtf(vx1); in xnn_f32_vsqrt_ukernel__scalar_sqrt_x4()
35 const float vy2 = sqrtf(vx2); in xnn_f32_vsqrt_ukernel__scalar_sqrt_x4()
36 const float vy3 = sqrtf(vx3); in xnn_f32_vsqrt_ukernel__scalar_sqrt_x4()
47 const float vy = sqrtf(vx); in xnn_f32_vsqrt_ukernel__scalar_sqrt_x4()
Dscalar-sqrt-x2.c31 const float vy0 = sqrtf(vx0); in xnn_f32_vsqrt_ukernel__scalar_sqrt_x2()
32 const float vy1 = sqrtf(vx1); in xnn_f32_vsqrt_ukernel__scalar_sqrt_x2()
40 const float vy = sqrtf(vx); in xnn_f32_vsqrt_ukernel__scalar_sqrt_x2()
/external/rust/crates/libm/src/math/
Dsqrtf.rs17 pub fn sqrtf(x: f32) -> f32 { in sqrtf() function
138 assert_eq!(sqrtf(100.0), 10.0); in sanity_check()
139 assert_eq!(sqrtf(4.0), 2.0); in sanity_check()
146 assert!(sqrtf(-1.0).is_nan()); in spec_tests()
147 assert!(sqrtf(NAN).is_nan()); in spec_tests()
149 assert_eq!(sqrtf(f), f); in spec_tests()
Dacosf.rs16 use super::sqrtf::sqrtf;
67 s = sqrtf(z); in acosf()
73 s = sqrtf(z); in acosf()
Dacoshf.rs1 use super::{log1pf, logf, sqrtf};
17 return log1pf(x - 1.0 + sqrtf((x - 1.0) * (x - 1.0) + 2.0 * (x - 1.0))); in acoshf()
21 return logf(2.0 * x - 1.0 / (x + sqrtf(x * x - 1.0))); in acoshf()
Dasinhf.rs1 use super::{log1pf, logf, sqrtf};
23 x = logf(2.0 * x + 1.0 / (sqrtf(x * x + 1.0) + x)); in asinhf()
26 x = log1pf(x + x * x / (sqrtf(x * x + 1.0) + 1.0)); in asinhf()
/external/llvm-project/llvm/test/Transforms/PartiallyInlineLibCalls/
Dnobuiltin.ll6 ; CHECK: call{{.*}}@sqrtf
7 ; CHECK-NOT: call{{.*}}@sqrtf
8 %res = tail call float @sqrtf(float %val) nobuiltin
12 declare float @sqrtf(float)
Dbad-prototype.ll7 declare float @sqrtf()
19 ; CHECK: call{{.*}}@sqrtf
20 ; CHECK-NOT: call{{.*}}@sqrtf
21 %r = call float @sqrtf()
/external/llvm/test/CodeGen/Mips/llvm-ir/
Dsqrt.ll7 %sqrtf = tail call float @sqrtf(float %value) #0
8 ret float %sqrtf
11 declare float @sqrtf(float)
/external/llvm-project/llvm/test/Transforms/LoopVectorize/
Dlibcall-remark.ll23 %sqrtf = tail call float @sqrtf(float %t0)
24 store float %sqrtf, float* %arrayidx, align 4
43 %sqrtf = tail call float @arbitrary(float %t0)
44 store float %sqrtf, float* %arrayidx, align 4
50 declare float @sqrtf(float)
/external/llvm/test/Transforms/InstSimplify/
Dfloating-point-arithmetic.ll74 declare float @sqrtf(float)
81 %1 = call float @sqrtf(float %x)
82 %2 = call float @sqrtf(float %1)
83 %3 = call float @sqrtf(float %2)
84 %4 = call float @sqrtf(float %3)
85 %5 = call float @sqrtf(float %4)
86 %6 = call float @sqrtf(float %5)
/external/llvm-project/llvm/test/Transforms/PartiallyInlineLibCalls/X86/
Dgood-prototype.ll8 ; CHECK-NEXT: [[RES:%.*]] = tail call float @sqrtf(float [[VAL:%.*]]) #0
12 ; CHECK-NEXT: [[TMP1:%.*]] = tail call float @sqrtf(float [[VAL]])
19 %res = tail call float @sqrtf(float %val)
23 declare float @sqrtf(float)
/external/skia/src/gpu/geometry/
DGrWangsFormula.h37 return sqrtf(sqrtf(x)); in root4()
115 return sqrtf(2*k * SkVector::Length(devWidth, devHeight)); in worst_case_cubic()
150 const float max_len = sqrtf(std::max(dot(p0, p0), std::max(dot(p1, p1), dot(p2, p2))));
159 const float numer = sqrtf(grvx::dot(dp, dp)) + r_minus_eps * dw;
171 return sqrtf(conic_pow2(tolerance, pts, w, vectorXform));
/external/XNNPACK/src/f32-vsqrt/
Dscalar-sqrt.c.in31 const float vy${ABC[N]} = sqrtf(vx${ABC[N]});
41 const float vy = sqrtf(vx);
47 const float vy = sqrtf(vx);
53 const float vy = sqrtf(vx);
/external/llvm/test/Transforms/InstCombine/
Dno_cgscc_assert.ll4 ; When the call to sqrtf is replaced by an intrinsic call to fabs,
9 %call1 = call fast float @sqrtf(float %mul)
17 declare float @sqrtf(float)
Dsqrt.ll8 ; CHECK: sqrtf(
23 ; CHECK: sqrtf(
33 ; Can't fold (fptrunc (sqrt (fpext x))) -> (sqrtf x) since there is another
39 ; CHECK-NOT: sqrtf(
/external/llvm-project/llvm/test/Transforms/InstCombine/
Dno_cgscc_assert.ll4 ; When the call to sqrtf is replaced by an intrinsic call to fabs,
9 %call1 = call fast float @sqrtf(float %mul)
17 declare float @sqrtf(float)
Dwin-math.ll249 ; MSVC32-NOT: float @sqrtf
251 ; MSVC51-NOT: float @sqrtf
254 ; MSVC64: float @sqrtf
256 ; MSVC83: float @sqrtf
258 ; MINGW32: float @sqrtf
260 ; MINGW64: float @sqrtf
313 ; win32 lacks sqrtf & fabsf, win64 lacks fabsf, but
317 ; MSVC32-NOT: float @sqrtf
319 ; MSVC51-NOT: float @sqrtf
322 ; MSVC64: float @sqrtf
[all …]
/external/eigen/Eigen/src/Core/arch/CUDA/
DMathFunctions.h62 return make_float4(sqrtf(a.x), sqrtf(a.y), sqrtf(a.z), sqrtf(a.w));
/external/llvm-project/llvm/test/CodeGen/Mips/llvm-ir/
Dsqrt.ll12 %sqrtf = tail call float @sqrtf(float %value) #0
13 ret float %sqrtf
16 declare float @sqrtf(float)

12345678910>>...13