Skip to content

Commit 8f888ab

Browse files
committed
Cleanup log2() portability checks
1 parent 3e63fa6 commit 8f888ab

File tree

4 files changed

+0
-15
lines changed

4 files changed

+0
-15
lines changed

cmake/os/WindowsCache.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ SET(HAVE_LDIV 1 CACHE INTERNAL "")
8787
SET(HAVE_LIMITS_H 1 CACHE INTERNAL "")
8888
SET(HAVE_LOCALE_H 1 CACHE INTERNAL "")
8989
SET(HAVE_LOCALTIME_R 1 CACHE INTERNAL "")
90-
#SET(HAVE_LOG2 CACHE INTERNAL "")
9190
SET(HAVE_LRAND48 CACHE INTERNAL "")
9291
SET(HAVE_LSTAT CACHE INTERNAL "")
9392
SET(HAVE_MADVISE CACHE INTERNAL "")

config.h.cmake

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@
165165
#cmakedefine HAVE_LDIV 1
166166
#cmakedefine HAVE_LRAND48 1
167167
#cmakedefine HAVE_LOCALTIME_R 1
168-
#cmakedefine HAVE_LOG2 1
169168
#cmakedefine HAVE_LSTAT 1
170169
#cmakedefine HAVE_MEMALIGN 1
171170
/* #cmakedefine HAVE_MLOCK 1 see Bug#54662 */

configure.cmake

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,8 +477,6 @@ CHECK_SYMBOL_EXISTS(TIOCSTAT "sys/ioctl.h" TIOCSTAT_IN_SYS_IOCTL)
477477
CHECK_SYMBOL_EXISTS(FIONREAD "sys/filio.h" FIONREAD_IN_SYS_FILIO)
478478
CHECK_SYMBOL_EXISTS(gettimeofday "sys/time.h" HAVE_GETTIMEOFDAY)
479479

480-
CHECK_SYMBOL_EXISTS(log2 math.h HAVE_LOG2)
481-
482480
#
483481
# Test for endianness
484482
#

include/my_global.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -843,17 +843,6 @@ inline unsigned long long my_double2ulonglong(double d)
843843
#define M_LN2 0.69314718055994530942
844844
#endif
845845

846-
#ifndef HAVE_LOG2
847-
/*
848-
This will be slightly slower and perhaps a tiny bit less accurate than
849-
doing it the IEEE754 way but log2() should be available on C99 systems.
850-
*/
851-
static inline double log2(double x)
852-
{
853-
return (log(x) / M_LN2);
854-
}
855-
#endif
856-
857846
/*
858847
Max size that must be added to a so that we know Size to make
859848
addressable obj.

0 commit comments

Comments
 (0)