/external/chromium_org/v8/test/mjsunit/es6/ |
H A D | math-log2-log10.js | 28 [Math.log10, Math.log2].forEach( function(fun) { 44 assertEqualsDelta(i, Math.log2(Math.pow(2, i)), 1E-13);
|
/external/guava/guava-tests/test/com/google/common/math/ |
H A D | DoubleMathTest.java | 291 int log2 = DoubleMath.log2(d, FLOOR); 292 assertTrue(StrictMath.pow(2.0, log2) <= d); 293 assertTrue(StrictMath.pow(2.0, log2 + 1) > d); 299 int log2 = DoubleMath.log2(d, CEILING); 300 assertTrue(StrictMath.pow(2.0, log2) >= d); 301 double z = StrictMath.pow(2.0, log2 - 1); 308 int log2 = DoubleMath.log2( [all...] |
H A D | BigIntegerMathTest.java | 70 BigIntegerMath.log2(ZERO, mode); 80 BigIntegerMath.log2(x.negate(), mode); 90 int result = BigIntegerMath.log2(x, mode); 100 int result = BigIntegerMath.log2(x, mode); 113 assertEquals(x, ZERO.setBit(BigIntegerMath.log2(x, UNNECESSARY))); 123 int result = BigIntegerMath.log2(x, HALF_UP); 134 int result = BigIntegerMath.log2(x, HALF_DOWN); 143 // Relies on the correctness of log2(BigInteger, {HALF_UP,HALF_DOWN}). 146 int halfEven = BigIntegerMath.log2(x, HALF_EVEN); 149 boolean floorWasEven = (BigIntegerMath.log2( [all...] |
H A D | IntMathTest.java | 97 @GwtIncompatible("log2") 101 IntMath.log2(0, mode); 107 @GwtIncompatible("log2") 112 IntMath.log2(x, mode); 119 // Relies on the correctness of BigIntegrerMath.log2 for all modes except UNNECESSARY. 124 assertEquals(BigIntegerMath.log2(valueOf(x), mode), IntMath.log2(x, mode)); 130 @GwtIncompatible("log2") 136 assertEquals(x, 1 << IntMath.log2(x, UNNECESSARY));
|
/external/mockito/cglib-and-asm/src/org/mockito/cglib/core/ |
H A D | TinyBitSet.java | 45 private static int log2(int i) { method in class:TinyBitSet 54 return log2(topbit(value));
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/ |
H A D | u_math.c | 46 /** log2(x), for x in [1.0, 2.0) */ 55 log2_table[i] = (float) log2(1.0 + i * (1.0 / LOG2_TABLE_SCALE));
|
/external/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_math.c | 46 /** log2(x), for x in [1.0, 2.0) */ 55 log2_table[i] = (float) log2(1.0 + i * (1.0 / LOG2_TABLE_SCALE));
|
/external/valgrind/main/memcheck/tests/ |
H A D | unit_libcbase.c | 419 CHECK( -1 == VG_(log2)(0) ); 420 CHECK( 0 == VG_(log2)(1) ); 421 CHECK( 1 == VG_(log2)(2) ); 422 CHECK( -1 == VG_(log2)(3) ); 423 CHECK( 2 == VG_(log2)(4) ); 424 CHECK( -1 == VG_(log2)(5) ); 425 CHECK( -1 == VG_(log2)(6) ); 426 CHECK( -1 == VG_(log2)(7) ); 427 CHECK( 3 == VG_(log2)(8) ); 429 CHECK( -1 == VG_(log2)( 1 [all...] |
/external/chromium_org/third_party/libvpx/source/libvpx/vp9/common/ |
H A D | vp9_tile_common.c | 18 static int get_tile_offset(int idx, int mis, int log2) { argument 20 const int offset = ((idx * sb_cols) >> log2) << MI_BLOCK_SIZE_LOG2;
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/gallivm/ |
H A D | f.cpp | 14 * for fast exp2/log2. 44 * - To compute log2 4th order polynomial between [0, 1/9] do: 67 boost::math::ntl::RR log2(const boost::math::ntl::RR& x) function 80 return log2((1.0 + sqrt(x))/(1.0 - sqrt(x)))/sqrt(x);
|
/external/libvpx/libvpx/vp9/common/ |
H A D | vp9_tile_common.c | 18 static int get_tile_offset(int idx, int mis, int log2) { argument 20 const int offset = ((idx * sb_cols) >> log2) << MI_BLOCK_SIZE_LOG2;
|
/external/mesa3d/src/gallium/auxiliary/gallivm/ |
H A D | f.cpp | 14 * for fast exp2/log2. 44 * - To compute log2 4th order polynomial between [0, 1/9] do: 67 boost::math::ntl::RR log2(const boost::math::ntl::RR& x) function 80 return log2((1.0 + sqrt(x))/(1.0 - sqrt(x)))/sqrt(x);
|
/external/chromium_org/third_party/WebKit/Source/wtf/ |
H A D | MathExtras.h | 105 // ANDROID and MSVC's math.h does not currently supply log2 or log2f. 106 inline double log2(double num) function 325 unsigned log2 = 0; local 327 log2 += 1; 329 log2 += 16, i >>= 16; 331 log2 += 8, i >>= 8; 333 log2 += 4, i >>= 4; 335 log2 += 2, i >>= 2; 337 log2 += 1; 338 return log2; [all...] |
/external/guava/guava/src/com/google/common/math/ |
H A D | BigIntegerMath.java | 67 public static int log2(BigInteger x, RoundingMode mode) { method in class:BigIntegerMath 94 * Since sqrt(2) is irrational, log2(x) - logFloor cannot be exactly 0.5 233 int log2 = log2(x, FLOOR); 234 if(log2 < DoubleUtils.MAX_DOUBLE_EXPONENT) { 237 int shift = (log2 - DoubleUtils.SIGNIFICAND_BITS) & ~1; // even! 293 int approxSize = IntMath.divide(n * IntMath.log2(n, CEILING), Long.SIZE, CEILING); 303 // Use floor(log2(num)) + 1 to prevent overflow of multiplication. 304 int productBits = LongMath.log2(product, FLOOR) + 1; 305 int bits = LongMath.log2(startingNumbe [all...] |
H A D | DoubleMath.java | 193 * {@link #log2(double, RoundingMode)} is faster. 195 public static double log2(double x) { method in class:DoubleMath 205 * <p>Regardless of the rounding mode, this is faster than {@code (int) log2(x)}. 211 public static int log2(double x, RoundingMode mode) { method in class:DoubleMath 215 return log2(x * IMPLICIT_BIT, mode) - SIGNIFICAND_BITS; 241 // so log2(x) is never exactly exponent + 0.5.
|
/external/qemu/android/build/ |
H A D | common.sh | 32 log2 () function 72 log2 "CPU=$CPU" 106 log2 "OS=$OS" 107 log2 "EXE=$EXE" 226 log2 "Mingw : Found $MINGW32_CC" 312 log2 "Object : $CC -o $TMPO -c $CFLAGS $TMPC" 320 log2 "Link : $LD -o $TMPE $TMPO $LDFLAGS" 328 log2 "Running: $*" 335 log2 "RunExec : $CC -o $TMPE $CFLAGS $TMPC"
|
/external/chromium_org/third_party/WebKit/Source/platform/audio/ffmpeg/ |
H A D | FFTFrameFFMPEG.cpp | 54 , m_log2FFTSize(static_cast<unsigned>(log2(fftSize))) 170 int pow2size = static_cast<int>(log2(fftSize));
|
/external/chromium_org/third_party/WebKit/Source/platform/audio/mac/ |
H A D | FFTFrameMac.cpp | 53 m_log2FFTSize = static_cast<unsigned>(log2(fftSize)); 130 int pow2size = static_cast<int>(log2(fftSize));
|
/external/valgrind/main/coregrind/m_replacemalloc/ |
H A D | replacemalloc_core.c | 61 VG_(log2)( VG_(clo_alignment) ) == -1 /* not a power of 2 */)
|
/external/chromium_org/third_party/brotli/src/brotli/enc/ |
H A D | literal_cost.cc | 114 float lit_cost = log2(static_cast<double>(in_window_utf8[utf8_pos]) 160 float lit_cost = log2(static_cast<double>(in_window) / histo);
|
/external/chromium_org/third_party/WebKit/Source/platform/audio/ipp/ |
H A D | FFTFrameIPP.cpp | 47 , m_log2FFTSize(static_cast<unsigned>(log2(fftSize)))
|
/external/llvm/include/llvm/Transforms/Utils/ |
H A D | VectorUtils.h | 37 case Intrinsic::log2: 148 case LibFunc::log2: 151 return checkUnaryFloatSignature(*CI, Intrinsic::log2);
|
/external/webrtc/src/common_audio/vad/ |
H A D | vad_filterbank.c | 233 int16_t zeros = 0, frac = 0, log2 = 0; local 245 // 160*log10(energy_s16*2^shfts) = 160*log10(2)*log2(energy_s16*2^shfts) = 246 // 160*log10(2)*(log2(energy_s16) + log2(2^shfts)) = 247 // 160*log10(2)*(log2(energy_s16) + shfts) 252 log2 = (int16_t) (((31 - zeros) << 10) + frac); 254 *log_energy = (int16_t) WEBRTC_SPL_MUL_16_16_RSFT(kLogConst, log2, 19)
|
/external/chromium_org/third_party/WebKit/Source/platform/audio/ |
H A D | HRTFKernel.cpp | 57 ASSERT(1UL << static_cast<unsigned>(log2(analysisFFTSize)) == analysisFFTSize);
|
/external/chromium_org/third_party/WebKit/Source/platform/audio/android/ |
H A D | FFTFrameOpenMAXDLAndroid.cpp | 47 , m_log2FFTSize(static_cast<unsigned>(log2(fftSize)))
|