[Piglit] [PATCH 1/2] gl-1.0-readpixsanity: Remove log2 re-definition.
jfonseca at vmware.com
jfonseca at vmware.com
Wed Oct 29 04:48:16 PDT 2014
From: José Fonseca <jfonseca at vmware.com>
It's already defined in tests/util/piglit-util.h if necessary, furthermore
it's a macro on MSVC, so redefining it causes errors.
Trivial.
---
tests/spec/gl-1.0/readpix.c | 7 -------
1 file changed, 7 deletions(-)
diff --git a/tests/spec/gl-1.0/readpix.c b/tests/spec/gl-1.0/readpix.c
index ab72806..7ee0be9 100644
--- a/tests/spec/gl-1.0/readpix.c
+++ b/tests/spec/gl-1.0/readpix.c
@@ -75,13 +75,6 @@ random_float(void)
return (float) rand() / RAND_MAX;
}
-/** Computes log base 2 (copied from Glean's misc.cpp) */
-double
-log2(double x)
-{
- return 1.4426950408889634 * log(x);
-}
-
/**
* (Copied from Glean's misc.cpp.)
* Utility routine to compute error, expressed in bits
--
1.9.1
More information about the Piglit
mailing list