Home
last modified time | relevance | path

Searched refs:log2 (Results 1 – 25 of 439) sorted by relevance

12345678910>>...18

/external/python/cpython3/Lib/test/
Dmath_testcases.txt522 -- log2: log to base 2 --
526 log20000 log2 0.0 -> -inf divide-by-zero
527 log20001 log2 -0.0 -> -inf divide-by-zero
528 log20002 log2 inf -> inf
529 log20003 log2 -inf -> nan invalid
530 log20004 log2 nan -> nan
533 log20010 log2 1.0 -> 0.0
536 log20020 log2 -5e-324 -> nan invalid
537 log20021 log2 -1.0 -> nan invalid
538 log20022 log2 -1.7e-308 -> nan invalid
[all …]
/external/arm-optimized-routines/test/testcases/directed/
Dlog2.tst1 ; Directed test cases for log2
6 func=log2 op1=7ff80000.00000001 result=7ff80000.00000001 errno=0
7 func=log2 op1=fff80000.00000001 result=7ff80000.00000001 errno=0
8 func=log2 op1=7ff00000.00000001 result=7ff80000.00000001 errno=0 status=i
9 func=log2 op1=fff00000.00000001 result=7ff80000.00000001 errno=0 status=i
10 func=log2 op1=7ff00000.00000000 result=7ff00000.00000000 errno=0
11 func=log2 op1=fff00000.00000000 result=7ff80000.00000001 errno=EDOM status=i
12 func=log2 op1=7fefffff.ffffffff result=408fffff.ffffffff.ffa errno=0
13 func=log2 op1=ffefffff.ffffffff result=7ff80000.00000001 errno=EDOM status=i
14 func=log2 op1=3ff00000.00000000 result=00000000.00000000 errno=0
[all …]
/external/guava/guava-tests/test/com/google/common/math/
DDoubleMathTest.java320 int log2 = DoubleMath.log2(d, FLOOR); in testRoundLog2Floor() local
321 assertTrue(StrictMath.pow(2.0, log2) <= d); in testRoundLog2Floor()
322 assertTrue(StrictMath.pow(2.0, log2 + 1) > d); in testRoundLog2Floor()
329 int log2 = DoubleMath.log2(d, CEILING); in testRoundLog2Ceiling() local
330 assertTrue(StrictMath.pow(2.0, log2) >= d); in testRoundLog2Ceiling()
331 double z = StrictMath.pow(2.0, log2 - 1); in testRoundLog2Ceiling()
339 int log2 = DoubleMath.log2(d, DOWN);
341 assertTrue(log2 >= 0);
342 assertTrue(StrictMath.pow(2.0, log2) <= d);
343 assertTrue(StrictMath.pow(2.0, log2 + 1) > d);
[all …]
DBigIntegerMathTest.java72 BigIntegerMath.log2(ZERO, mode); in testLog2ZeroAlwaysThrows()
81 BigIntegerMath.log2(BigInteger.valueOf(-1), mode); in testLog2NegativeAlwaysThrows()
90 int result = BigIntegerMath.log2(x, mode); in testLog2Floor()
100 int result = BigIntegerMath.log2(x, mode); in testLog2Ceiling()
113 assertEquals(x, ZERO.setBit(BigIntegerMath.log2(x, UNNECESSARY))); in testLog2Exact()
123 int result = BigIntegerMath.log2(x, HALF_UP); in testLog2HalfUp()
134 int result = BigIntegerMath.log2(x, HALF_DOWN); in testLog2HalfDown()
146 int halfEven = BigIntegerMath.log2(x, HALF_EVEN); in testLog2HalfEven()
149 boolean floorWasEven = (BigIntegerMath.log2(x, FLOOR) & 1) == 0; in testLog2HalfEven()
150 assertEquals(BigIntegerMath.log2(x, floorWasEven ? HALF_DOWN : HALF_UP), halfEven); in testLog2HalfEven()
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/InstSimplify/
Dlog-exp-intrinsic.ll6 declare double @llvm.log2.f64(double)
60 %2 = call reassoc double @llvm.log2.f64(double %1)
67 ; CHECK-NEXT: [[TMP2:%.*]] = call double @llvm.log2.f64(double [[TMP1]])
71 %2 = call double @llvm.log2.f64(double %1)
78 ; CHECK-NEXT: [[TMP2:%.*]] = call double @llvm.log2.f64(double [[TMP1]])
80 ; CHECK-NEXT: [[TMP4:%.*]] = call double @llvm.log2.f64(double [[TMP3]])
84 %2 = call double @llvm.log2.f64(double %1)
86 %4 = call double @llvm.log2.f64(double %3)
95 %2 = call reassoc double @llvm.log2.f64(double %1)
97 %4 = call reassoc double @llvm.log2.f64(double %3)
[all …]
/external/guava/guava-gwt/test-super/com/google/common/math/super/com/google/common/math/
DBigIntegerMathTest.java60 BigIntegerMath.log2(ZERO, mode); in testLog2ZeroAlwaysThrows()
69 BigIntegerMath.log2(BigInteger.valueOf(-1), mode); in testLog2NegativeAlwaysThrows()
78 int result = BigIntegerMath.log2(x, mode); in testLog2Floor()
88 int result = BigIntegerMath.log2(x, mode); in testLog2Ceiling()
101 assertEquals(x, ZERO.setBit(BigIntegerMath.log2(x, UNNECESSARY))); in testLog2Exact()
111 int result = BigIntegerMath.log2(x, HALF_UP); in testLog2HalfUp()
122 int result = BigIntegerMath.log2(x, HALF_DOWN); in testLog2HalfDown()
134 int halfEven = BigIntegerMath.log2(x, HALF_EVEN); in testLog2HalfEven()
137 boolean floorWasEven = (BigIntegerMath.log2(x, FLOOR) & 1) == 0; in testLog2HalfEven()
138 assertEquals(BigIntegerMath.log2(x, floorWasEven ? HALF_DOWN : HALF_UP), halfEven); in testLog2HalfEven()
DLongMathTest.java62 LongMath.log2(0L, mode); in testLog2ZeroAlwaysThrows()
72 LongMath.log2(x, mode); in testLog2NegativeAlwaysThrows()
84 assertEquals(BigIntegerMath.log2(valueOf(x), mode), LongMath.log2(x, mode)); in testLog2MatchesBigInteger()
95 assertEquals(x, 1L << LongMath.log2(x, UNNECESSARY)); in testLog2Exact()
/external/swiftshader/third_party/LLVM/test/CodeGen/XCore/
Dlog2.ll3 ; RUN: grep "bl log2" %t1.s | count 2
4 declare double @llvm.log2.f64(double)
7 %result = call double @llvm.log2.f64(double %F)
11 declare float @llvm.log2.f32(float)
14 %result = call float @llvm.log2.f32(float %F)
/external/guava/guava/src/com/google/common/math/
DBigIntegerMath.java69 public static int log2(BigInteger x, RoundingMode mode) { in log2() method in BigIntegerMath
135 int approxLog10 = (int) (log2(x, FLOOR) * LN_2 / LN_10); in log10()
263 int log2 = log2(x, FLOOR); in sqrtFloor() local
264 if (log2 < Double.MAX_EXPONENT) { in sqrtFloor()
267 int shift = (log2 - DoubleUtils.SIGNIFICAND_BITS) & ~1; // even! in sqrtFloor()
325 int approxSize = IntMath.divide(n * IntMath.log2(n, CEILING), Long.SIZE, CEILING); in factorial()
336 int productBits = LongMath.log2(product, FLOOR) + 1; in factorial()
337 int bits = LongMath.log2(startingNumber, FLOOR) + 1; in factorial()
361 productBits = LongMath.log2(product, FLOOR) + 1; in factorial()
416 int bits = LongMath.log2(n, RoundingMode.CEILING); in binomial()
/external/mesa3d/src/gallium/drivers/radeonsi/glsl_tests/
Dlog2.glsl3 ; FUNC-LABEL: {{^}}@log2:
9 #shader fs log2
13 gl_FragColor.x = log2(f);
/external/llvm/test/CodeGen/AMDGPU/
Dllvm.log2.ll16 %0 = call float @llvm.log2.f32(float %in)
39 %0 = call <2 x float> @llvm.log2.v2f32(<2 x float> %in)
73 %0 = call <4 x float> @llvm.log2.v4f32(<4 x float> %in)
78 declare float @llvm.log2.f32(float) readnone
79 declare <2 x float> @llvm.log2.v2f32(<2 x float>) readnone
80 declare <4 x float> @llvm.log2.v4f32(<4 x float>) readnone
/external/guava/guava-gwt/src-super/com/google/common/math/super/com/google/common/math/
DBigIntegerMath.java67 public static int log2(BigInteger x, RoundingMode mode) { in log2() method in BigIntegerMath
142 int approxSize = IntMath.divide(n * IntMath.log2(n, CEILING), Long.SIZE, CEILING); in factorial()
153 int productBits = LongMath.log2(product, FLOOR) + 1; in factorial()
154 int bits = LongMath.log2(startingNumber, FLOOR) + 1; in factorial()
178 productBits = LongMath.log2(product, FLOOR) + 1; in factorial()
233 int bits = LongMath.log2(n, RoundingMode.CEILING); in binomial()
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/AMDGPU/
Dllvm.log2.ll16 %0 = call float @llvm.log2.f32(float %in)
39 %0 = call <2 x float> @llvm.log2.v2f32(<2 x float> %in)
73 %0 = call <4 x float> @llvm.log2.v4f32(<4 x float> %in)
78 declare float @llvm.log2.f32(float) readnone
79 declare <2 x float> @llvm.log2.v2f32(<2 x float>) readnone
80 declare <4 x float> @llvm.log2.v4f32(<4 x float>) readnone
Dllvm.log2.f16.ll4 declare half @llvm.log2.f16(half %a)
5 declare <2 x half> @llvm.log2.v2f16(<2 x half> %a)
20 %r.val = call half @llvm.log2.f16(half %a.val)
50 %r.val = call <2 x half> @llvm.log2.v2f16(<2 x half> %a.val)
/external/llvm/test/CodeGen/ARM/
Dlog2_not_readnone.ll6 declare double @log2(double)
10 ; CHECK: bl log2
11 %1 = call double @log2(double 0.000000e+00)
Dvfloatintrinsics.ll62 ; CHECK: test_v2f32.log2:
63 define %v2f32 @test_v2f32.log2(%v2f32 %a) {
65 %1 = call %v2f32 @llvm.log2.v2f32(%v2f32 %a)
120 declare %v2f32 @llvm.log2.v2f32(%v2f32) #0
186 ; CHECK: test_v4f32.log2:
187 define %v4f32 @test_v4f32.log2(%v4f32 %a) {
189 %1 = call %v4f32 @llvm.log2.v4f32(%v4f32 %a)
244 declare %v4f32 @llvm.log2.v4f32(%v4f32) #0
310 ; CHECK: test_v2f64.log2:
311 define %v2f64 @test_v2f64.log2(%v2f64 %a) {
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/ARM/
Dlog2_not_readnone.ll6 declare double @log2(double)
10 ; CHECK: bl log2
11 %1 = call double @log2(double 0.000000e+00)
Dvfloatintrinsics.ll62 ; CHECK-LABEL: test_v2f32.log2:{{.*}}
63 define %v2f32 @test_v2f32.log2(%v2f32 %a) {
65 %1 = call %v2f32 @llvm.log2.v2f32(%v2f32 %a)
120 declare %v2f32 @llvm.log2.v2f32(%v2f32) #0
186 ; CHECK-LABEL: test_v4f32.log2:{{.*}}
187 define %v4f32 @test_v4f32.log2(%v4f32 %a) {
189 %1 = call %v4f32 @llvm.log2.v4f32(%v4f32 %a)
244 declare %v4f32 @llvm.log2.v4f32(%v4f32) #0
310 ; CHECK-LABEL: test_v2f64.log2:{{.*}}
311 define %v2f64 @test_v2f64.log2(%v2f64 %a) {
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/X86/
Dlog2_not_readnone.ll6 declare double @log2(double)
10 ; CHECK: calll log2
11 %1 = call double @log2(double 0.000000e+00)
/external/llvm/test/CodeGen/X86/
Dlog2_not_readnone.ll6 declare double @log2(double)
10 ; CHECK: calll log2
11 %1 = call double @log2(double 0.000000e+00)
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/XCore/
Dfloat-intrinsics.ll7 declare double @llvm.log2.f64(double)
93 define double @log2(double %F) {
94 ; CHECK-LABEL: log2:
95 ; CHECK: bl log2
96 %result = call double @llvm.log2.f64(double %F)
100 declare float @llvm.log2.f32(float)
105 %result = call float @llvm.log2.f32(float %F)
/external/llvm/test/CodeGen/XCore/
Dfloat-intrinsics.ll7 declare double @llvm.log2.f64(double)
93 define double @log2(double %F) {
94 ; CHECK-LABEL: log2:
95 ; CHECK: bl log2
96 %result = call double @llvm.log2.f64(double %F)
100 declare float @llvm.log2.f32(float)
105 %result = call float @llvm.log2.f32(float %F)
/external/tensorflow/tensorflow/contrib/coder/kernels/
Dpmf_to_cdf_op.cc68 const int64 cost_per_unit = static_cast<int64>(50.0 * n * std::log2(n)); in Compute()
102 return mass * (std::log2(*pointer) - std::log2(*pointer - 1)); in ComputeNextPenalty()
130 return mass * (std::log2(*pointer + 1) - std::log2(*pointer)); in ComputeNextGain()
/external/bcc/tests/python/
Dtest_trace3.c11 static u32 log2(u32 v) { in log2() function
25 return log2(hi) + 32; in log2l()
27 return log2(v); in log2l()
/external/llvm/test/CodeGen/AArch64/
Darm64-vfloatintrinsics.ll60 ; CHECK: test_v2f32.log2:
61 define %v2f32 @test_v2f32.log2(%v2f32 %a) {
63 %1 = call %v2f32 @llvm.log2.v2f32(%v2f32 %a)
118 declare %v2f32 @llvm.log2.v2f32(%v2f32) #0
184 ; CHECK: test_v4f32.log2:
185 define %v4f32 @test_v4f32.log2(%v4f32 %a) {
187 %1 = call %v4f32 @llvm.log2.v4f32(%v4f32 %a)
242 declare %v4f32 @llvm.log2.v4f32(%v4f32) #0
308 ; CHECK: test_v2f64.log2:
309 define %v2f64 @test_v2f64.log2(%v2f64 %a) {
[all …]

12345678910>>...18