Searched refs:log2 (Results 1 - 25 of 169) sorted by relevance

1234567

/external/vulkan-validation-layers/libs/glm/detail/
H A D_fixes.hpp52 #ifdef log2
53 #undef log2 macro
H A Dfunc_exponential.hpp96 /// @param x log2 function is defined for input values of x defined in the range (0, inf+) in the limit of the type precision.
99 /// @see <a href="http://www.opengl.org/sdk/docs/manglsl/xhtml/log2.xml">GLSL log2 man page</a>
102 GLM_FUNC_DECL genType log2(genType x);
/external/valgrind/auxprogs/
H A Dcompare-build-logs23 $prog_name log1 log2
51 my $log2 = $ARGV[1];
55 my %cmd2 = read_log_file($log2);
61 print "*** $file missing in $log2\n";
117 print "*** '$k' is missing in compilation of '$file' in $log2\n";
/external/mesa3d/src/gallium/auxiliary/util/
H A Du_math.c46 /** log2(x), for x in [1.0, 2.0) */
55 log2_table[i] = (float) log2(1.0 + i * (1.0 / LOG2_TABLE_SCALE));
/external/guava/guava-tests/test/com/google/common/math/
H A DDoubleMathTest.java320 int log2 = DoubleMath.log2(d, FLOOR);
321 assertTrue(StrictMath.pow(2.0, log2) <= d);
322 assertTrue(StrictMath.pow(2.0, log2 + 1) > d);
326 @GwtIncompatible("DoubleMath.log2(double, RoundingMode), StrictMath")
329 int log2 = DoubleMath.log2(d, CEILING);
330 assertTrue(StrictMath.pow(2.0, log2) >= d);
331 double z = StrictMath.pow(2.0, log2 - 1);
336 @GwtIncompatible("DoubleMath.log2(doubl
[all...]
/external/valgrind/memcheck/tests/
H A Dunit_libcbase.c439 CHECK( -1 == VG_(log2)(0) );
440 CHECK( 0 == VG_(log2)(1) );
441 CHECK( 1 == VG_(log2)(2) );
442 CHECK( -1 == VG_(log2)(3) );
443 CHECK( 2 == VG_(log2)(4) );
444 CHECK( -1 == VG_(log2)(5) );
445 CHECK( -1 == VG_(log2)(6) );
446 CHECK( -1 == VG_(log2)(7) );
447 CHECK( 3 == VG_(log2)(8) );
449 CHECK( -1 == VG_(log2)( 1
[all...]
/external/guava/guava-gwt/test-super/com/google/common/math/super/com/google/common/math/
H A DBigIntegerMathTest.java60 BigIntegerMath.log2(ZERO, mode);
69 BigIntegerMath.log2(BigInteger.valueOf(-1), mode);
78 int result = BigIntegerMath.log2(x, mode);
88 int result = BigIntegerMath.log2(x, mode);
101 assertEquals(x, ZERO.setBit(BigIntegerMath.log2(x, UNNECESSARY)));
111 int result = BigIntegerMath.log2(x, HALF_UP);
122 int result = BigIntegerMath.log2(x, HALF_DOWN);
131 // Relies on the correctness of log2(BigInteger, {HALF_UP,HALF_DOWN}).
134 int halfEven = BigIntegerMath.log2(x, HALF_EVEN);
137 boolean floorWasEven = (BigIntegerMath.log2(
[all...]
H A DLongMathTest.java62 LongMath.log2(0L, mode);
72 LongMath.log2(x, mode);
79 /* Relies on the correctness of BigIntegerMath.log2 for all modes except UNNECESSARY. */
84 assertEquals(BigIntegerMath.log2(valueOf(x), mode), LongMath.log2(x, mode));
95 assertEquals(x, 1L << LongMath.log2(x, UNNECESSARY));
/external/swiftshader/src/OpenGL/libGL/
H A Dmathutil.h30 inline int log2(int x) function in namespace:gl
/external/swiftshader/src/OpenGL/libGLES_CM/
H A Dmathutil.h30 inline int log2(int x) function in namespace:es1
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/layout/
H A DTaggedRecord.java56 int log2 = Utility.highBit(count);
57 int power = 1 << log2;
/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/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/slf4j/slf4j-api/src/test/java/org/slf4j/helpers/
H A DSubstituteLoggerFactoryTest.java41 Logger log2 = factory.getLogger("foo");
42 assertTrue("Loggers with same name must be same", log == log2);
/external/swiftshader/src/OpenGL/libGLESv2/
H A Dmathutil.h30 inline int log2(int x) function in namespace:es2
/external/v8/src/base/
H A Dieee754.h52 V8_BASE_EXPORT double log2(double x);
/external/vulkan-validation-layers/libs/glm/gtx/
H A Dinteger.hpp61 //! Returns the log2 of x. Can be reliably using to compute mipmap count from the texture size.
64 GLM_FUNC_DECL genIUType log2(genIUType x);
66 //! Returns the floor log2 of x.
/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 < Double.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...]
/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/ltp/testcases/kernel/controllers/cpuctl/
H A Drun_cpuctl_latency_test.sh82 log2() function
103 log2 $num_cpus;
/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...]
/external/testng/kobalt/wrapper/
H A Dkobalt-wrapper.jar ... .String) throws java.io.IOException static void log2 (int, java.lang.String) static void log (int ...

Completed in 629 milliseconds

1234567