Home
last modified time | relevance | path

Searched refs:ldexp (Results 1 – 25 of 184) sorted by relevance

12345678

/external/deqp-deps/glslang/gtests/
DHexFloat.cpp113 {float(ldexp(1.0f, -126)), "0x1p-126"},
114 {float(ldexp(-1.0f, -126)), "-0x1p-126"},
117 {float(ldexp(1.0f, -127)), "0x1p-127"},
118 {float(ldexp(1.0f, -127) / 2.0f), "0x1p-128"},
119 {float(ldexp(1.0f, -127) / 4.0f), "0x1p-129"},
120 {float(ldexp(1.0f, -127) / 8.0f), "0x1p-130"},
121 {float(ldexp(-1.0f, -127)), "-0x1p-127"},
122 {float(ldexp(-1.0f, -127) / 2.0f), "-0x1p-128"},
123 {float(ldexp(-1.0f, -127) / 4.0f), "-0x1p-129"},
124 {float(ldexp(-1.0f, -127) / 8.0f), "-0x1p-130"},
[all …]
/external/swiftshader/third_party/SPIRV-Tools/test/
Dhex_float_test.cpp117 {float(ldexp(1.0f, -126)), "0x1p-126"},
118 {float(ldexp(-1.0f, -126)), "-0x1p-126"},
121 {float(ldexp(1.0f, -127)), "0x1p-127"},
122 {float(ldexp(1.0f, -127) / 2.0f), "0x1p-128"},
123 {float(ldexp(1.0f, -127) / 4.0f), "0x1p-129"},
124 {float(ldexp(1.0f, -127) / 8.0f), "0x1p-130"},
125 {float(ldexp(-1.0f, -127)), "-0x1p-127"},
126 {float(ldexp(-1.0f, -127) / 2.0f), "-0x1p-128"},
127 {float(ldexp(-1.0f, -127) / 4.0f), "-0x1p-129"},
128 {float(ldexp(-1.0f, -127) / 8.0f), "-0x1p-130"},
[all …]
/external/deqp-deps/SPIRV-Tools/test/
Dhex_float_test.cpp117 {float(ldexp(1.0f, -126)), "0x1p-126"},
118 {float(ldexp(-1.0f, -126)), "-0x1p-126"},
121 {float(ldexp(1.0f, -127)), "0x1p-127"},
122 {float(ldexp(1.0f, -127) / 2.0f), "0x1p-128"},
123 {float(ldexp(1.0f, -127) / 4.0f), "0x1p-129"},
124 {float(ldexp(1.0f, -127) / 8.0f), "0x1p-130"},
125 {float(ldexp(-1.0f, -127)), "-0x1p-127"},
126 {float(ldexp(-1.0f, -127) / 2.0f), "-0x1p-128"},
127 {float(ldexp(-1.0f, -127) / 4.0f), "-0x1p-129"},
128 {float(ldexp(-1.0f, -127) / 8.0f), "-0x1p-130"},
[all …]
/external/llvm/test/CodeGen/AMDGPU/
Dllvm.amdgcn.ldexp.ll4 declare float @llvm.amdgcn.ldexp.f32(float, i32) nounwind readnone
5 declare double @llvm.amdgcn.ldexp.f64(double, i32) nounwind readnone
7 declare float @llvm.AMDGPU.ldexp.f32(float, i32) nounwind readnone
8 declare double @llvm.AMDGPU.ldexp.f64(double, i32) nounwind readnone
14 %result = call float @llvm.amdgcn.ldexp.f32(float %a, i32 %b) nounwind readnone
23 %result = call double @llvm.amdgcn.ldexp.f64(double %a, i32 %b) nounwind readnone
32 %result = call float @llvm.AMDGPU.ldexp.f32(float %a, i32 %b) nounwind readnone
41 %result = call double @llvm.AMDGPU.ldexp.f64(double %a, i32 %b) nounwind readnone
49 %result = call float @llvm.amdgcn.ldexp.f32(float undef, i32 %b) nounwind readnone
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/InstCombine/
Dexp2-1.ll12 ; Check exp2(sitofp(x)) -> ldexp(1.0, sext(x)).
18 ; CHECK: call double @ldexp
26 ; CHECK: call double @ldexp
34 ; CHECK: call double @ldexp
46 ; Check exp2(uitofp(x)) -> ldexp(1.0, zext(x)).
60 ; CHECK: call double @ldexp
68 ; CHECK: call double @ldexp
87 ; LDEXP: call double @ldexp
88 ; NOLDEXP-NOT: call double @ldexp
/external/llvm/test/Transforms/InstCombine/
Dexp2-1.ll12 ; Check exp2(sitofp(x)) -> ldexp(1.0, sext(x)).
18 ; CHECK: call double @ldexp
26 ; CHECK: call double @ldexp
34 ; CHECK: call double @ldexp
46 ; Check exp2(uitofp(x)) -> ldexp(1.0, zext(x)).
60 ; CHECK: call double @ldexp
68 ; CHECK: call double @ldexp
87 ; LDEXP: call double @ldexp
88 ; NOLDEXP-NOT: call double @ldexp
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/AMDGPU/
Dllvm.amdgcn.ldexp.ll4 declare float @llvm.amdgcn.ldexp.f32(float, i32) nounwind readnone
5 declare double @llvm.amdgcn.ldexp.f64(double, i32) nounwind readnone
11 %result = call float @llvm.amdgcn.ldexp.f32(float %a, i32 %b) nounwind readnone
20 %result = call double @llvm.amdgcn.ldexp.f64(double %a, i32 %b) nounwind readnone
28 %result = call float @llvm.amdgcn.ldexp.f32(float undef, i32 %b) nounwind readnone
Dllvm.amdgcn.ldexp.f16.ll3 declare half @llvm.amdgcn.ldexp.f16(half %a, i32 %b)
16 %r.val = call half @llvm.amdgcn.ldexp.f16(half %a.val, i32 %b.val)
29 %r.val = call half @llvm.amdgcn.ldexp.f16(half 2.0, i32 %b.val)
42 %r.val = call half @llvm.amdgcn.ldexp.f16(half %a.val, i32 2)
/external/swiftshader/third_party/LLVM/test/CodeGen/Mips/
D2008-11-10-xint_to_fp.ll19 tail call double @ldexp( double %1, i32 -48 ) nounwind ; <double>:2 [#uses=1]
23 tail call double @ldexp( double %5, i32 -32 ) nounwind ; <double>:6 [#uses=1]
28 tail call double @ldexp( double %10, i32 -16 ) nounwind ; <double>:11 [#uses=1]
35 declare double @ldexp(double, i32)
43 tail call double @ldexp( double %2, i32 -48 ) nounwind ; <double>:3 [#uses=1]
47 tail call double @ldexp( double %6, i32 -32 ) nounwind ; <double>:7 [#uses=1]
52 tail call double @ldexp( double %11, i32 -16 ) nounwind ; <double>:12 [#uses=1]
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/Mips/
D2008-11-10-xint_to_fp.ll18 tail call double @ldexp( double %1, i32 -48 ) nounwind ; <double>:2 [#uses=1]
22 tail call double @ldexp( double %5, i32 -32 ) nounwind ; <double>:6 [#uses=1]
27 tail call double @ldexp( double %10, i32 -16 ) nounwind ; <double>:11 [#uses=1]
34 declare double @ldexp(double, i32)
42 tail call double @ldexp( double %2, i32 -48 ) nounwind ; <double>:3 [#uses=1]
46 tail call double @ldexp( double %6, i32 -32 ) nounwind ; <double>:7 [#uses=1]
51 tail call double @ldexp( double %11, i32 -16 ) nounwind ; <double>:12 [#uses=1]
/external/llvm/test/CodeGen/Mips/
D2008-11-10-xint_to_fp.ll18 tail call double @ldexp( double %1, i32 -48 ) nounwind ; <double>:2 [#uses=1]
22 tail call double @ldexp( double %5, i32 -32 ) nounwind ; <double>:6 [#uses=1]
27 tail call double @ldexp( double %10, i32 -16 ) nounwind ; <double>:11 [#uses=1]
34 declare double @ldexp(double, i32)
42 tail call double @ldexp( double %2, i32 -48 ) nounwind ; <double>:3 [#uses=1]
46 tail call double @ldexp( double %6, i32 -32 ) nounwind ; <double>:7 [#uses=1]
51 tail call double @ldexp( double %11, i32 -16 ) nounwind ; <double>:12 [#uses=1]
/external/mesa3d/src/gallium/drivers/radeonsi/glsl_tests/
Dldexp.glsl3 ; FUNC-LABEL: {{^}}@ldexp:
10 #shader fs ldexp
15 gl_FragColor.x = ldexp(f, i);
/external/python/cpython2/Lib/test/
Dtest_math.py485 mant, exp = int(math.ldexp(mant, mant_dig)), exp - mant_dig
501 return math.ldexp(tmant, texp)
560 self.assertRaises(TypeError, math.ldexp)
561 self.ftest('ldexp(0,1)', math.ldexp(0,1), 0)
562 self.ftest('ldexp(1,1)', math.ldexp(1,1), 2)
563 self.ftest('ldexp(1,-1)', math.ldexp(1,-1), 0.5)
564 self.ftest('ldexp(-1,1)', math.ldexp(-1,1), -2)
565 self.assertRaises(OverflowError, math.ldexp, 1., 1000000)
566 self.assertRaises(OverflowError, math.ldexp, -1., 1000000)
567 self.assertEqual(math.ldexp(1., -1000000), 0.)
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/RewriteStatepointsForGC/
Dlibcall.ll7 declare double @ldexp(double %x, i32 %n) nounwind readnone
11 ; CHECK-NEXT: %res = call double @ldexp(double %x, i32 5)
13 %res = call double @ldexp(double %x, i32 5) nounwind readnone
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/PlaceSafepoints/
Dlibcall.ll5 declare double @ldexp(double %x, i32 %n) nounwind readnone
18 ; CHECK-NEXT: %x_exp = call double @ldexp(double %x_loop, i32 5)
22 %x_exp = call double @ldexp(double %x_loop, i32 5) nounwind readnone
/external/python/cpython3/Lib/test/
Dtest_math.py616 mant, exp = int(math.ldexp(mant, mant_dig)), exp - mant_dig
632 return math.ldexp(tmant, texp)
735 self.assertRaises(TypeError, math.ldexp)
736 self.ftest('ldexp(0,1)', math.ldexp(0,1), 0)
737 self.ftest('ldexp(1,1)', math.ldexp(1,1), 2)
738 self.ftest('ldexp(1,-1)', math.ldexp(1,-1), 0.5)
739 self.ftest('ldexp(-1,1)', math.ldexp(-1,1), -2)
740 self.assertRaises(OverflowError, math.ldexp, 1., 1000000)
741 self.assertRaises(OverflowError, math.ldexp, -1., 1000000)
742 self.assertEqual(math.ldexp(1., -1000000), 0.)
[all …]
/external/deqp/external/vulkancts/modules/vulkan/spirv_assembly/
DvktSpvAsmUtils.cpp412 float64.push_back(ldexp((double)1.f, -1023)); in getFloat64s()
413 float64.push_back(-ldexp((double)1.f, -1023)); in getFloat64s()
416 float64.push_back(ldexp((double)1.f, -100)); in getFloat64s()
417 float64.push_back(-ldexp((double)1.f, -100)); in getFloat64s()
423 float64.push_back(ldexp((double)1.f, -14)); // 2e-14: minimum 16-bit positive normalized in getFloat64s()
424 float64.push_back(-ldexp((double)1.f, -14)); // 2e-14: maximum 16-bit negative normalized in getFloat64s()
435 float64.push_back(ldexp((double)1.f, 100)); in getFloat64s()
436 float64.push_back(-ldexp((double)1.f, 100)); in getFloat64s()
/external/libcxx/test/support/
Dhexfloat.h44 value_ = std::ldexp(m1 + s * std::ldexp(T(m0), exp2), exp); in hexfloat()
/external/swiftshader/third_party/LLVM/test/CodeGen/X86/
D2006-08-07-CycleInDAG.ll12 %tmp13.i12.i = tail call double @ldexp( double 0.000000e+00, i32 0 ) ; <double> [#uses=1]
31 declare double @ldexp(double, i32)
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/X86/
D2006-08-07-CycleInDAG.ll12 %tmp13.i12.i = tail call double @ldexp( double 0.000000e+00, i32 0 ) ; <double> [#uses=1]
31 declare double @ldexp(double, i32)
/external/llvm/test/CodeGen/X86/
D2006-08-07-CycleInDAG.ll12 %tmp13.i12.i = tail call double @ldexp( double 0.000000e+00, i32 0 ) ; <double> [#uses=1]
31 declare double @ldexp(double, i32)
/external/deqp-deps/glslang/Test/
Dspv.intOps.vert51 fout.xy += ldexp(v2, i2);
52 fout.x += ldexp(v1, i1);
/external/libopus/celt/tests/
Dtest_unit_entropy.c108 entropy,ldexp(nbits,-3),100*(nbits-ldexp(entropy,3))/nbits); in main()
133 ldexp(nbits2,-3),ldexp(nbits,-3)); in main()
/external/eigen/unsupported/Eigen/src/MatrixFunctions/
DMatrixExponential.h39 using std::ldexp; in operator()
40 return ldexp(x, -m_squarings); in operator()
51 using std::ldexp; in operator()
52 return ComplexScalar(ldexp(x.real(), -m_squarings), ldexp(x.imag(), -m_squarings)); in operator()
/external/clang/lib/Headers/
D__clang_cuda_math_forward_declares.h122 __DEVICE__ double ldexp(double, int);
123 __DEVICE__ float ldexp(float, int);
227 using ::ldexp;

12345678