Searched defs:log2 (Results 1 - 25 of 40) sorted by relevance

12

/external/guava/guava-tests/benchmark/com/google/common/math/
H A DBigIntegerMathRoundingBenchmark.java54 @Benchmark int log2(int reps) { method in class:BigIntegerMathRoundingBenchmark
58 tmp += BigIntegerMath.log2(positive[j], mode);
H A DDoubleMathBenchmark.java47 @Benchmark long log2(int reps) { method in class:DoubleMathBenchmark
51 tmp += Double.doubleToRawLongBits(DoubleMath.log2(positiveDoubles[j]));
H A DIntMathRoundingBenchmark.java54 @Benchmark int log2(int reps) { method in class:IntMathRoundingBenchmark
58 tmp += IntMath.log2(positive[j], mode);
H A DLongMathRoundingBenchmark.java54 @Benchmark int log2(int reps) { method in class:LongMathRoundingBenchmark
58 tmp += LongMath.log2(positive[j], mode);
/external/mesa3d/src/gallium/auxiliary/gallivm/
H A Df.cpp14 * 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/mockito/cglib-and-asm/src/org/mockito/cglib/core/
H A DTinyBitSet.java45 private static int log2(int i) { method in class:TinyBitSet
54 return log2(topbit(value));
/external/guava/guava-gwt/src-super/com/google/common/math/super/com/google/common/math/
H A DBigIntegerMath.java67 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
142 int approxSize = IntMath.divide(n * IntMath.log2(n, CEILING), Long.SIZE, CEILING);
152 // Use floor(log2(num)) + 1 to prevent overflow of multiplication.
153 int productBits = LongMath.log2(product, FLOOR) + 1;
154 int bits = LongMath.log2(startingNumber, FLOOR) + 1;
160 // Check to see if the floor(log2(num)) + 1 has changed.
169 // Adjust floor(log2(num)) + 1.
178 productBits = LongMath.log2(product, FLOOR) + 1;
233 int bits = LongMath.log2(
[all...]
H A DDoubleMath.java62 * {@link #log2(double, RoundingMode)} is faster.
64 public static double log2(double x) { method in class:DoubleMath
H A DLongMath.java80 public static int log2(long x, RoundingMode mode) { method in class:LongMath
97 // Since sqrt(2) is irrational, log2(x) - logFloor cannot be exactly 0.5
229 int nBits = LongMath.log2(n, RoundingMode.CEILING);
236 // This is an upper bound on log2(numerator, ceiling).
H A DIntMath.java84 public static int log2(int x, RoundingMode mode) { method in class:IntMath
101 // Since sqrt(2) is irrational, log2(x) - logFloor cannot be exactly 0.5
120 * The key idea is that based on the number of leading zeros (equivalently, floor(log2(x))),
121 * we can narrow the possible floor(log10(x)) values to two. For example, if floor(log2(x))
/external/libvpx/libvpx/vp9/common/
H A Dvp9_tile_common.c18 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/mapi/glapi/gen/
H A DglX_server_table.py32 def log2(value): function
78 bits = log2(opcode)
/external/guava/guava/src/com/google/common/math/
H A DBigIntegerMath.java69 public static int log2(BigInteger x, RoundingMode mode) { method in class:BigIntegerMath
96 * Since sqrt(2) is irrational, log2(x) - logFloor cannot be exactly 0.5
135 int approxLog10 = (int) (log2(x, FLOOR) * LN_2 / LN_10);
263 int log2 = log2(x, FLOOR);
264 if (log2 < DoubleUtils.MAX_EXPONENT) {
267 int shift = (log2 - DoubleUtils.SIGNIFICAND_BITS) & ~1; // even!
325 int approxSize = IntMath.divide(n * IntMath.log2(n, CEILING), Long.SIZE, CEILING);
335 // Use floor(log2(num)) + 1 to prevent overflow of multiplication.
336 int productBits = LongMath.log2(produc
[all...]
H A DDoubleMath.java214 * {@link #log2(double, RoundingMode)} is faster.
216 public static double log2(double x) { method in class:DoubleMath
226 * <p>Regardless of the rounding mode, this is faster than {@code (int) log2(x)}.
233 public static int log2(double x, RoundingMode mode) { method in class:DoubleMath
237 return log2(x * IMPLICIT_BIT, mode) - SIGNIFICAND_BITS;
263 // so log2(x) is never exactly exponent + 0.5.
H A DIntMath.java87 public static int log2(int x, RoundingMode mode) { method in class:IntMath
104 // Since sqrt(2) is irrational, log2(x) - logFloor cannot be exactly 0.5
156 * The key idea is that based on the number of leading zeros (equivalently, floor(log2(x))),
157 * we can narrow the possible floor(log10(x)) values to two. For example, if floor(log2(x))
H A DLongMath.java85 public static int log2(long x, RoundingMode mode) { method in class:LongMath
102 // Since sqrt(2) is irrational, log2(x) - logFloor cannot be exactly 0.5
156 * The key idea is that based on the number of leading zeros (equivalently, floor(log2(x))),
157 * we can narrow the possible floor(log10(x)) values to two. For example, if floor(log2(x))
674 int nBits = LongMath.log2(n, RoundingMode.CEILING);
681 // This is an upper bound on log2(numerator, ceiling).
/external/webrtc/src/common_audio/vad/
H A Dvad_filterbank.c233 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/deqp/framework/common/
H A DtcuVectorUtil.hpp66 inline float log2 (float f) { return deFloatLog2(f); } function in namespace:tcu
446 TCU_DECLARE_VECTOR_UNARY_FUNC(log2, deFloatLog2)
/external/webrtc/src/modules/audio_processing/ns/
H A Dnsx_core_neon.c101 int16_t log2, tabind, logval, tmp16, tmp16no1, tmp16no2; local
118 // lmagn(i)=log(magn(i))=log(2)*log2(magn(i))
128 // log2(magn(i))
129 log2 = (int16_t)(((31 - zeros) << 8)
131 // log2(magn(i))*log(2)
132 lmagn[i] = (int16_t)WEBRTC_SPL_MUL_16_16_RSFT(log2, log2_const, 15);
/external/deqp/modules/gles2/scripts/
H A Dgenutil.py150 def log2(val): return val.applyUnary(lambda x: math.log(x, 2.0)) member in class:GenMath
/external/deqp/modules/gles3/scripts/
H A Dgenutil.py160 def log2(val): return val.applyUnary(lambda x: math.log(x, 2.0)) member in class:GenMath
/external/deqp/modules/gles31/scripts/
H A Dgenutil.py160 def log2(val): return val.applyUnary(lambda x: math.log(x, 2.0)) member in class:GenMath
/external/mesa3d/src/gallium/auxiliary/util/
H A Du_math.h119 static INLINE double log2( double x ) function
143 double log2(double d) function
236 const float k = 1.44269f; /* = log2(e) */
248 * Fast approximation to log2(x).
/external/bison/darwin-lib/
H A Dmath.h1746 # undef log2
1747 # define log2 rpl_log2
1749 _GL_FUNCDECL_RPL (log2, double, (double x));
1750 _GL_CXXALIAS_RPL (log2, double, (double x));
1753 # undef log2
1754 _GL_FUNCDECL_SYS (log2, double, (double x));
1756 _GL_CXXALIAS_SYS (log2, double, (double x));
1758 _GL_CXXALIASWARN (log2);
1760 # undef log2 macro
1762 _GL_WARN_ON_USE (log2, "log
[all...]
/external/bison/lib/
H A Dmath.in.h1434 # undef log2 macro
1435 # define log2 rpl_log2 macro
1437 _GL_FUNCDECL_RPL (log2, double, (double x));
1438 _GL_CXXALIAS_RPL (log2, double, (double x));
1441 # undef log2 macro
1442 _GL_FUNCDECL_SYS (log2, double, (double x));
1444 _GL_CXXALIAS_SYS (log2, double, (double x));
1446 _GL_CXXALIASWARN (log2); variable
1448 # undef log2 macro
1450 _GL_WARN_ON_USE (log2, "log
[all...]

Completed in 621 milliseconds

12