OSDN Git Service

android: remove log2, log2f
authorChih-Wei Huang <cwhuang@linux.org.tw>
Sun, 21 Jul 2013 15:04:19 +0000 (23:04 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Tue, 23 Jul 2013 17:16:55 +0000 (01:16 +0800)
The functions are already defined in the latest bionic.

src/gallium/auxiliary/util/u_math.h

index 607fbec..e36b2fe 100644 (file)
@@ -136,30 +136,6 @@ roundf(float x)
 #endif /* _MSC_VER */
 
 
-#ifdef PIPE_OS_ANDROID
-
-static INLINE
-double log2(double d)
-{
-   return log(d) * (1.0 / M_LN2);
-}
-
-/* workaround a conflict with main/imports.h */
-#ifdef log2f
-#undef log2f
-#endif
-
-static INLINE
-float log2f(float f)
-{
-   return logf(f) * (float) (1.0 / M_LN2);
-}
-
-#endif
-
-
-
-
 #define POW2_TABLE_SIZE_LOG2 9
 #define POW2_TABLE_SIZE (1 << POW2_TABLE_SIZE_LOG2)
 #define POW2_TABLE_OFFSET (POW2_TABLE_SIZE/2)