/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));
|
H A D | LongMathTest.java | 142 LongMath.log2(0L, mode); 152 LongMath.log2(x, mode); 159 /* Relies on the correctness of BigIntegerMath.log2 for all modes except UNNECESSARY. */ 164 assertEquals(BigIntegerMath.log2(valueOf(x), mode), LongMath.log2(x, mode)); 175 assertEquals(x, 1L << LongMath.log2(x, UNNECESSARY));
|
/external/valgrind/main/memcheck/tests/ |
H A D | unit_libcbase.c | 417 CHECK( -1 == VG_(log2)(0) ); 418 CHECK( 0 == VG_(log2)(1) ); 419 CHECK( 1 == VG_(log2)(2) ); 420 CHECK( -1 == VG_(log2)(3) ); 421 CHECK( 2 == VG_(log2)(4) ); 422 CHECK( -1 == VG_(log2)(5) ); 423 CHECK( -1 == VG_(log2)(6) ); 424 CHECK( -1 == VG_(log2)(7) ); 425 CHECK( 3 == VG_(log2)(8) ); 427 CHECK( -1 == VG_(log2)( 1 [all...] |
/external/webkit/Source/ThirdParty/ANGLE/src/libGLESv2/ |
H A D | mathutil.h | 21 inline int log2(int x) function in namespace:gl
|
/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" 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/valgrind/main/coregrind/m_replacemalloc/ |
H A D | replacemalloc_core.c | 59 VG_(log2)( VG_(clo_alignment) ) == -1 /* not a power of 2 */)
|
/external/webkit/Source/WebCore/platform/ |
H A D | Arena.cpp | 88 int log2; local 89 CEILING_LOG2(log2,i); 90 return log2;
|
/external/libffi/src/powerpc/ |
H A D | asm.h | 38 #define ALIGNARG(log2) log2
|
/external/valgrind/main/cachegrind/ |
H A D | cg-arch.c | 47 (-1 == VG_(log2)(cache->size/cache->line_size/cache->assoc))) 53 if (-1 == VG_(log2)(cache->line_size)) {
|
H A D | cg_sim.c | 64 c->line_size_bits = VG_(log2)(c->line_size); 65 c->tag_shift = c->line_size_bits + VG_(log2)(c->sets);
|
/external/webkit/Source/WebCore/loader/cache/ |
H A D | MemoryCache.cpp | 352 unsigned log2 = 0; local 354 log2 += 1; 356 log2 += 16, i >>= 16; 358 log2 += 8, i >>= 8; 360 log2 += 4, i >>= 4; 362 log2 += 2, i >>= 2; 364 log2 += 1; 365 return log2;
|
/external/webkit/Source/WebCore/platform/audio/mac/ |
H A D | FFTFrameMac.cpp | 49 m_log2FFTSize = static_cast<unsigned>(log2(fftSize)); 157 int pow2size = static_cast<int>(log2(fftSize));
|
/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/grub/stage2/ |
H A D | fsys_fat.c | 58 log2 (unsigned long word) function 87 FAT_SUPER->sectsize_bits = log2 (FAT_CVT_U16 (bpb.bytes_per_sect)); 89 = FAT_SUPER->sectsize_bits + log2 (bpb.sects_per_clust);
|
H A D | fsys_ext2fs.c | 196 #define log2(n) ffz(~(n)) macro 219 #define EXT2_ADDR_PER_BLOCK_BITS(s) (log2(EXT2_ADDR_PER_BLOCK(s))) 540 group_desc = group_id >> log2 (EXT2_DESC_PER_BLOCK (SUPERBLOCK)); 556 >> log2 (EXT2_BLOCK_SIZE (SUPERBLOCK) / sizeof (struct ext2_inode)));
|
/external/skia/src/core/ |
H A D | SkCordic.cpp | 284 float log2 = (float) f_log / 65536.0f; local 285 float error = fabsf(log - log2); 287 SkDebugf("log error : val = %g ; log = %g ; cordic = %g\n", val, log, log2);
|
/external/webkit/Source/WebCore/platform/audio/ |
H A D | HRTFKernel.cpp | 57 ASSERT(1UL << static_cast<unsigned>(log2(analysisFFTSize)) == analysisFFTSize);
|
/external/valgrind/main/drd/scripts/ |
H A D | measurement-functions | 8 function log2 {
|
/external/webkit/Source/WebCore/platform/audio/fftw/ |
H A D | FFTFrameFFTW.cpp | 60 , m_log2FFTSize(static_cast<unsigned>(log2(fftSize))) 268 int pow2size = static_cast<int>(log2(fftSize));
|
/external/webkit/Source/WebCore/platform/audio/mkl/ |
H A D | FFTFrameMKL.cpp | 91 , m_log2FFTSize(static_cast<unsigned>(log2(fftSize))) 257 int pow2size = static_cast<int>(log2(fftSize));
|
/external/llvm/include/llvm/Target/ |
H A D | TargetLibraryInfo.h | 120 /// double log2(double x); 121 log2, enumerator in enum:llvm::LibFunc::Func
|