diff options
author | Sergey Vojtovich <svoj@mariadb.org> | 2018-05-25 22:33:18 +0400 |
---|---|---|
committer | Sergey Vojtovich <svoj@mariadb.org> | 2018-05-26 13:30:13 +0400 |
commit | 8f888ab1d82205ec45165fa23d21cffc4d1ef8a1 (patch) | |
tree | 8b7a98a49f1cc21ea27d7f82041b4e3c30418a2b | |
parent | 3e63fa6eb39977c38c6ec6d1259554133a8d6390 (diff) | |
download | mariadb-git-8f888ab1d82205ec45165fa23d21cffc4d1ef8a1.tar.gz |
Cleanup log2() portability checks
-rw-r--r-- | cmake/os/WindowsCache.cmake | 1 | ||||
-rw-r--r-- | config.h.cmake | 1 | ||||
-rw-r--r-- | configure.cmake | 2 | ||||
-rw-r--r-- | include/my_global.h | 11 |
4 files changed, 0 insertions, 15 deletions
diff --git a/cmake/os/WindowsCache.cmake b/cmake/os/WindowsCache.cmake index 0d40fc344f6..2ba3aec16b4 100644 --- a/cmake/os/WindowsCache.cmake +++ b/cmake/os/WindowsCache.cmake @@ -87,7 +87,6 @@ SET(HAVE_LDIV 1 CACHE INTERNAL "") SET(HAVE_LIMITS_H 1 CACHE INTERNAL "") SET(HAVE_LOCALE_H 1 CACHE INTERNAL "") SET(HAVE_LOCALTIME_R 1 CACHE INTERNAL "") -#SET(HAVE_LOG2 CACHE INTERNAL "") SET(HAVE_LRAND48 CACHE INTERNAL "") SET(HAVE_LSTAT CACHE INTERNAL "") SET(HAVE_MADVISE CACHE INTERNAL "") diff --git a/config.h.cmake b/config.h.cmake index fa0547d1ef2..cdf3fd1a726 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -165,7 +165,6 @@ #cmakedefine HAVE_LDIV 1 #cmakedefine HAVE_LRAND48 1 #cmakedefine HAVE_LOCALTIME_R 1 -#cmakedefine HAVE_LOG2 1 #cmakedefine HAVE_LSTAT 1 #cmakedefine HAVE_MEMALIGN 1 /* #cmakedefine HAVE_MLOCK 1 see Bug#54662 */ diff --git a/configure.cmake b/configure.cmake index 2b268a1c003..d840dd4e565 100644 --- a/configure.cmake +++ b/configure.cmake @@ -477,8 +477,6 @@ CHECK_SYMBOL_EXISTS(TIOCSTAT "sys/ioctl.h" TIOCSTAT_IN_SYS_IOCTL) CHECK_SYMBOL_EXISTS(FIONREAD "sys/filio.h" FIONREAD_IN_SYS_FILIO) CHECK_SYMBOL_EXISTS(gettimeofday "sys/time.h" HAVE_GETTIMEOFDAY) -CHECK_SYMBOL_EXISTS(log2 math.h HAVE_LOG2) - # # Test for endianness # diff --git a/include/my_global.h b/include/my_global.h index 05c6d02f390..8fa4429bdbf 100644 --- a/include/my_global.h +++ b/include/my_global.h @@ -843,17 +843,6 @@ inline unsigned long long my_double2ulonglong(double d) #define M_LN2 0.69314718055994530942 #endif -#ifndef HAVE_LOG2 -/* - This will be slightly slower and perhaps a tiny bit less accurate than - doing it the IEEE754 way but log2() should be available on C99 systems. -*/ -static inline double log2(double x) -{ - return (log(x) / M_LN2); -} -#endif - /* Max size that must be added to a so that we know Size to make addressable obj. |