diff options
author | Chris Robinson <[email protected]> | 2018-11-14 17:08:14 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-14 17:08:14 -0800 |
commit | 3b1b029a7597d5b5f571f819f0bab4b8a33e5810 (patch) | |
tree | 0356ba71e230c5d16a7eb6d66ac1845cc7977aea | |
parent | c4d3444a6dc2ff365dbbf568313719f15ebd7fac (diff) |
Remove some now-unused function checks
-rw-r--r-- | CMakeLists.txt | 3 | ||||
-rw-r--r-- | common/math_defs.h | 8 | ||||
-rw-r--r-- | config.h.in | 9 |
3 files changed, 0 insertions, 20 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a992d76c..5cd54ba9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -604,8 +604,6 @@ CHECK_SYMBOL_EXISTS(posix_memalign stdlib.h HAVE_POSIX_MEMALIGN) CHECK_SYMBOL_EXISTS(_aligned_malloc malloc.h HAVE__ALIGNED_MALLOC) CHECK_SYMBOL_EXISTS(proc_pidpath libproc.h HAVE_PROC_PIDPATH) CHECK_SYMBOL_EXISTS(lrintf math.h HAVE_LRINTF) -CHECK_SYMBOL_EXISTS(modff math.h HAVE_MODFF) -CHECK_SYMBOL_EXISTS(log2f math.h HAVE_LOG2F) CHECK_SYMBOL_EXISTS(cbrtf math.h HAVE_CBRTF) CHECK_SYMBOL_EXISTS(copysignf math.h HAVE_COPYSIGNF) @@ -615,7 +613,6 @@ IF(HAVE_FLOAT_H) ENDIF() CHECK_FUNCTION_EXISTS(stat HAVE_STAT) -CHECK_FUNCTION_EXISTS(strtof HAVE_STRTOF) CHECK_FUNCTION_EXISTS(strcasecmp HAVE_STRCASECMP) IF(NOT HAVE_STRCASECMP) CHECK_FUNCTION_EXISTS(_stricmp HAVE__STRICMP) diff --git a/common/math_defs.h b/common/math_defs.h index 1b24bec4..3e8dbe76 100644 --- a/common/math_defs.h +++ b/common/math_defs.h @@ -32,14 +32,6 @@ static const union msvc_inf_hack { #define HUGE_VALF (msvc_inf_union.f) #endif -#ifndef HAVE_LOG2F -static inline float my_log2f(float f) -{ - return logf(f) / logf(2.0f); -} -#define log2f my_log2f -#endif - #ifndef HAVE_CBRTF static inline float my_cbrtf(float f) { diff --git a/config.h.in b/config.h.in index 5b4bdfde..7895dc88 100644 --- a/config.h.in +++ b/config.h.in @@ -92,21 +92,12 @@ /* Define if we have the lrintf function */ #cmakedefine HAVE_LRINTF -/* Define if we have the modff function */ -#cmakedefine HAVE_MODFF - -/* Define if we have the log2f function */ -#cmakedefine HAVE_LOG2F - /* Define if we have the cbrtf function */ #cmakedefine HAVE_CBRTF /* Define if we have the copysignf function */ #cmakedefine HAVE_COPYSIGNF -/* Define if we have the strtof function */ -#cmakedefine HAVE_STRTOF - /* Define if we have the strnlen function */ #cmakedefine HAVE_STRNLEN |