/external/guava/guava-tests/test/com/google/common/math/ |
DoubleMathTest.java | 291 int log2 = DoubleMath.log2(d, FLOOR); local 292 assertTrue(StrictMath.pow(2.0, log2) <= d); 293 assertTrue(StrictMath.pow(2.0, log2 + 1) > d); 299 int log2 = DoubleMath.log2(d, CEILING); local 300 assertTrue(StrictMath.pow(2.0, log2) >= d); 301 double z = StrictMath.pow(2.0, log2 - 1); 308 int log2 = DoubleMath.log2(d, DOWN) [all...] |
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(x, FLOOR) & 1) == 0 [all...] |
/ndk/build/tools/ |
dev-platform-compress.sh | 95 log2 "Comparing $CFILE with $PFILE" 100 log2 "Removing obsolete $DFILE" 103 log2 "Skipping $CFILE" 110 log2 "Copying $SFILE --> $DFILE"
|
ndk-common.sh | 87 # Setup a log file where all log() and log2() output will be sent 145 log2 () function 266 log2 "HOST_OS=$HOST_OS" 267 log2 "HOST_EXE=$HOST_EXE" 313 log2 "Detected 32-bit userland on 64-bit kernel system!" 319 log2 "HOST_ARCH=$HOST_ARCH" 360 log2 "HOST_TAG=$HOST_TAG" 381 log2 "HOST_NUM_CPUS=$HOST_NUM_CPUS" 391 log2 "BUILD_NUM_CPUS=$BUILD_NUM_CPUS" 403 log2 "Forcing generation of 32-bit host binaries on $HOST_ARCH [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/util/ |
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/ |
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/ |
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)( 15) ) [all...] |
/external/chromium_org/chrome/common/metrics/ |
metrics_log_manager_unittest.cc | 165 MetricsLogBase* log2 = new MetricsLogBase("id", 0, "version"); local 168 log_manager.BeginLoggingWithLog(log2, MetricsLogBase::ONGOING_LOG); 275 MetricsLogBase* log2 = new MetricsLogBase("id", 0, "version"); local 278 log_manager.BeginLoggingWithLog(log2, MetricsLogBase::ONGOING_LOG); 296 MetricsLogBase* log2 = new MetricsLogBase("id", 0, "version"); local 299 log_manager.BeginLoggingWithLog(log2, MetricsLogBase::ONGOING_LOG); 321 MetricsLogBase* log2 = new MetricsLogBase("id", 0, "version"); local 328 log_manager.BeginLoggingWithLog(log2, MetricsLogBase::ONGOING_LOG); 346 MetricsLogBase* log2 = new MetricsLogBase("id", 0, "version"); local 351 log_manager.BeginLoggingWithLog(log2, MetricsLogBase::ONGOING_LOG) 392 MetricsLogManager::SerializedLog log2; local [all...] |
/ndk/sources/android/support/include/ |
math.h | 89 double log2(double);
|
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/gallivm/ |
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/mesa3d/src/gallium/auxiliary/gallivm/ |
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/ |
MathExtras.h | 102 // ANDROID and MSVC's math.h does not currently supply log2 or log2f. 103 inline double log2(double num) function 297 unsigned log2 = 0; local 299 log2 += 1; 301 log2 += 16, i >>= 16; 303 log2 += 8, i >>= 8; 305 log2 += 4, i >>= 4; 307 log2 += 2, i >>= 2; 309 log2 += 1; 310 return log2; [all...] |
/external/guava/guava/src/com/google/common/math/ |
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); local 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(startingNumber, FLOOR) + 1 [all...] |
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/ |
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/ |
replacemalloc_core.c | 59 VG_(log2)( VG_(clo_alignment) ) == -1 /* not a power of 2 */)
|
/external/clang/test/CodeGen/ |
libcall-declarations.c | 50 double log2(double); 84 logf, log2, log2l, log2f, nearbyint, nearbyintl, nearbyintf, pow, powl, powf, 134 // CHECK-NOERRNO: declare double @log2(double) [[NUW]]
|
/external/libffi/src/powerpc/ |
asm.h | 38 #define ALIGNARG(log2) log2
|
/bionic/libm/upstream-freebsd/lib/msun/src/ |
e_log2.c | 23 * log2(x) = (f - 0.5*f*f + k_log1p(f)) / ln2 + k 116 __weak_reference(log2, log2l);
|
/external/eigen/unsupported/Eigen/src/MatrixFunctions/ |
MatrixExponential.h | 19 template <typename Scalar> Scalar log2(Scalar v) { using std::log; return log(v)/log(Scalar(2)); } function in namespace:Eigen 300 m_squarings = (max)(0, (int)ceil(log2(m_l1norm / maxnorm))); 322 m_squarings = (max)(0, (int)ceil(log2(m_l1norm / maxnorm))); 347 m_squarings = (max)(0, (int)ceil(log2(m_l1norm / maxnorm))); 364 m_squarings = (max)(0, (int)ceil(log2(m_l1norm / maxnorm))); 381 m_squarings = (max)(0, (int)ceil(log2(m_l1norm / maxnorm)));
|
/external/chromium_org/third_party/WebKit/Source/platform/audio/ffmpeg/ |
FFTFrameFFMPEG.cpp | 92 , m_log2FFTSize(static_cast<unsigned>(log2(fftSize))) 244 int pow2size = static_cast<int>(log2(fftSize));
|
/external/chromium_org/third_party/WebKit/Source/platform/audio/mac/ |
FFTFrameMac.cpp | 53 m_log2FFTSize = static_cast<unsigned>(log2(fftSize)); 153 int pow2size = static_cast<int>(log2(fftSize));
|
/external/valgrind/main/cachegrind/ |
cg-arch.c | 47 (-1 == VG_(log2)(cache->size/cache->line_size/cache->assoc))) 53 if (-1 == VG_(log2)(cache->line_size)) {
|
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/chromium_org/third_party/angle/src/libGLESv2/ |
mathutil.h | 35 inline int log2(int x) function in namespace:gl
|