/external/guava/guava-tests/test/com/google/common/math/ |
D | DoubleMathTest.java | 291 int log2 = DoubleMath.log2(d, FLOOR); in testRoundLog2Floor() local 292 assertTrue(StrictMath.pow(2.0, log2) <= d); in testRoundLog2Floor() 293 assertTrue(StrictMath.pow(2.0, log2 + 1) > d); in testRoundLog2Floor() 299 int log2 = DoubleMath.log2(d, CEILING); in testRoundLog2Ceiling() local 300 assertTrue(StrictMath.pow(2.0, log2) >= d); in testRoundLog2Ceiling() 301 double z = StrictMath.pow(2.0, log2 - 1); in testRoundLog2Ceiling() 308 int log2 = DoubleMath.log2(d, DOWN); 310 assertTrue(log2 >= 0); 311 assertTrue(StrictMath.pow(2.0, log2) <= d); 312 assertTrue(StrictMath.pow(2.0, log2 + 1) > d); [all …]
|
D | BigIntegerMathTest.java | 70 BigIntegerMath.log2(ZERO, mode); in testLog2ZeroAlwaysThrows() 80 BigIntegerMath.log2(x.negate(), 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()
|
D | IntMathTest.java | 101 IntMath.log2(0, mode); in testLog2ZeroAlwaysThrows() 112 IntMath.log2(x, mode); in testLog2NegativeAlwaysThrows() 124 assertEquals(BigIntegerMath.log2(valueOf(x), mode), IntMath.log2(x, mode)); in testLog2MatchesBigInteger() 136 assertEquals(x, 1 << IntMath.log2(x, UNNECESSARY)); in testLog2Exact()
|
D | LongMathTest.java | 142 LongMath.log2(0L, mode); in testLog2ZeroAlwaysThrows() 152 LongMath.log2(x, mode); in testLog2NegativeAlwaysThrows() 164 assertEquals(BigIntegerMath.log2(valueOf(x), mode), LongMath.log2(x, mode)); in testLog2MatchesBigInteger() 175 assertEquals(x, 1L << LongMath.log2(x, UNNECESSARY)); in testLog2Exact()
|
/external/valgrind/main/memcheck/tests/ |
D | unit_libcbase.c | 417 CHECK( -1 == VG_(log2)(0) ); in test_log2() 418 CHECK( 0 == VG_(log2)(1) ); in test_log2() 419 CHECK( 1 == VG_(log2)(2) ); in test_log2() 420 CHECK( -1 == VG_(log2)(3) ); in test_log2() 421 CHECK( 2 == VG_(log2)(4) ); in test_log2() 422 CHECK( -1 == VG_(log2)(5) ); in test_log2() 423 CHECK( -1 == VG_(log2)(6) ); in test_log2() 424 CHECK( -1 == VG_(log2)(7) ); in test_log2() 425 CHECK( 3 == VG_(log2)(8) ); in test_log2() 427 CHECK( -1 == VG_(log2)( 15) ); in test_log2() [all …]
|
/external/mesa3d/src/glsl/builtins/ir/ |
D | log2 | 1 ((function log2 5 ((return (expression float log2 (var_ref arg0))))) 10 ((return (expression vec2 log2 (var_ref arg0))))) 15 ((return (expression vec3 log2 (var_ref arg0))))) 20 ((return (expression vec4 log2 (var_ref arg0)))))
|
/external/qemu/android/build/ |
D | common.sh | 32 log2 () function 72 log2 "CPU=$CPU" 106 log2 "OS=$OS" 107 log2 "EXE=$EXE" 214 log2 "Mingw : Found $MINGW32_CC" 308 log2 "Object : $CC -o $TMPO -c $CFLAGS $TMPC" 316 log2 "Link : $LD -o $TMPE $TMPO $LDFLAGS" 324 log2 "Running: $*" 331 log2 "RunExec : $CC -o $TMPE $CFLAGS $TMPC"
|
/external/guava/guava/src/com/google/common/math/ |
D | BigIntegerMath.java | 67 public static int log2(BigInteger x, RoundingMode mode) { in log2() method in BigIntegerMath 233 int log2 = log2(x, FLOOR); in sqrtFloor() local 234 if(log2 < DoubleUtils.MAX_DOUBLE_EXPONENT) { in sqrtFloor() 237 int shift = (log2 - DoubleUtils.SIGNIFICAND_BITS) & ~1; // even! in sqrtFloor() 293 int approxSize = IntMath.divide(n * IntMath.log2(n, CEILING), Long.SIZE, CEILING); in factorial() 304 int productBits = LongMath.log2(product, FLOOR) + 1; in factorial() 305 int bits = LongMath.log2(startingNumber, FLOOR) + 1; in factorial() 329 productBits = LongMath.log2(product, FLOOR) + 1; in factorial()
|
D | DoubleMath.java | 195 public static double log2(double x) { in log2() method in DoubleMath 211 public static int log2(double x, RoundingMode mode) { in log2() method in DoubleMath 215 return log2(x * IMPLICIT_BIT, mode) - SIGNIFICAND_BITS; in log2()
|
/external/llvm/test/CodeGen/ARM/ |
D | log2_not_readnone.ll | 6 declare double @log2(double) 10 ; CHECK: bl log2 11 %1 = call double @log2(double 0.000000e+00)
|
/external/llvm/test/CodeGen/X86/ |
D | log2_not_readnone.ll | 6 declare double @log2(double) 10 ; CHECK: calll log2 11 %1 = call double @log2(double 0.000000e+00)
|
D | limited-prec.ll | 47 %0 = call float @llvm.log2.f32(float %x) ; <float> [#uses=1] 51 declare float @llvm.log2.f32(float) nounwind readonly
|
/external/llvm/test/CodeGen/XCore/ |
D | float-intrinsics.ll | 7 declare double @llvm.log2.f64(double) 93 define double @log2(double %F) { 94 ; CHECK: 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/flac/libFLAC/ia32/ |
D | fixed_asm.nasm | 219 fyl2x ; ST = log2(ln2*total_error_0/data_len) data_len 220 fstp dword [ebx] ; residual_bits_per_sample[0] = log2(ln2*total_error_0/data_len) ST = data_len 235 fyl2x ; ST = log2(ln2*total_error_1/data_len) data_len 236 …fstp dword [ebx + 4] ; residual_bits_per_sample[1] = log2(ln2*total_error_1/data_len) ST = dat… 250 fyl2x ; ST = log2(ln2*total_error_2/data_len) data_len 251 …fstp dword [ebx + 8] ; residual_bits_per_sample[2] = log2(ln2*total_error_2/data_len) ST = dat… 265 fyl2x ; ST = log2(ln2*total_error_3/data_len) data_len 266 …fstp dword [ebx + 12] ; residual_bits_per_sample[3] = log2(ln2*total_error_3/data_len) ST = dat… 280 fyl2x ; ST = log2(ln2*total_error_4/data_len) data_len 281 …fstp dword [ebx + 16] ; residual_bits_per_sample[4] = log2(ln2*total_error_4/data_len) ST = dat…
|
/external/eigen/unsupported/Eigen/src/MatrixFunctions/ |
D | MatrixExponential.h | 19 template <typename Scalar> Scalar log2(Scalar v) { using std::log; return log(v)/log(Scalar(2)); } in log2() function 300 m_squarings = (max)(0, (int)ceil(log2(m_l1norm / maxnorm))); in computeUV() 322 m_squarings = (max)(0, (int)ceil(log2(m_l1norm / maxnorm))); in computeUV() 347 m_squarings = (max)(0, (int)ceil(log2(m_l1norm / maxnorm))); in computeUV() 364 m_squarings = (max)(0, (int)ceil(log2(m_l1norm / maxnorm))); in computeUV() 381 m_squarings = (max)(0, (int)ceil(log2(m_l1norm / maxnorm))); in computeUV()
|
/external/webkit/Source/WebCore/loader/cache/ |
D | MemoryCache.cpp | 352 unsigned log2 = 0; in fastLog2() local 354 log2 += 1; in fastLog2() 356 log2 += 16, i >>= 16; in fastLog2() 358 log2 += 8, i >>= 8; in fastLog2() 360 log2 += 4, i >>= 4; in fastLog2() 362 log2 += 2, i >>= 2; in fastLog2() 364 log2 += 1; in fastLog2() 365 return log2; in fastLog2()
|
/external/webkit/Source/WebCore/platform/ |
D | Arena.cpp | 88 int log2; in CeilingLog2() local 89 CEILING_LOG2(log2,i); in CeilingLog2() 90 return log2; in CeilingLog2()
|
/external/clang/test/CodeGen/ |
D | libcall-declarations.c | 50 double log2(double); 84 logf, log2, log2l, log2f, nearbyint, nearbyintl, nearbyintf, pow, powl, powf,
|
/external/libffi/src/powerpc/ |
D | asm.h | 38 #define ALIGNARG(log2) log2 argument
|
/external/jmonkeyengine/engine/src/core-data/Common/ShaderLib/ |
D | Hdr.glsllib | 9 float Le = 2.0 * log2(lum + epsilon) + 127.0; 36 float Le = 2.0 * log2(Xp_Y_XYZp.y) + 127.0;
|
/external/webrtc/src/common_audio/vad/ |
D | vad_filterbank.c | 233 int16_t zeros = 0, frac = 0, log2 = 0; in WebRtcVad_LogOfEnergy() local 252 log2 = (int16_t) (((31 - zeros) << 10) + frac); in WebRtcVad_LogOfEnergy() 254 *log_energy = (int16_t) WEBRTC_SPL_MUL_16_16_RSFT(kLogConst, log2, 19) in WebRtcVad_LogOfEnergy()
|
/external/webkit/Source/WebCore/platform/audio/mac/ |
D | FFTFrameMac.cpp | 49 m_log2FFTSize = static_cast<unsigned>(log2(fftSize)); in FFTFrame() 157 int pow2size = static_cast<int>(log2(fftSize)); in fftSetupForSize()
|
/external/webkit/PerformanceTests/SunSpider/tests/sunspider-0.9/ |
D | string-tagcloud.js | 228 var log2 = Math.log(2); variable 229 ….parseJSON(function(a, b) { if (a == "popularity") { return Math.log(b) / log2; } else {return b; …
|
/external/webkit/PerformanceTests/SunSpider/tests/sunspider-0.9.1/ |
D | string-tagcloud.js | 228 var log2 = Math.log(2); variable 229 ….parseJSON(function(a, b) { if (a == "popularity") { return Math.log(b) / log2; } else {return b; …
|
/external/valgrind/main/cachegrind/ |
D | cg-arch.c | 47 (-1 == VG_(log2)(cache->size/cache->line_size/cache->assoc))) in check_cache() 53 if (-1 == VG_(log2)(cache->line_size)) { in check_cache()
|