Remove the float math wrapper functions
This commit is contained in:
@@ -267,17 +267,6 @@ CHECK_SYMBOL_EXISTS(aligned_alloc stdlib.h HAVE_ALIGNED_ALLOC)
|
||||
CHECK_SYMBOL_EXISTS(posix_memalign stdlib.h HAVE_POSIX_MEMALIGN)
|
||||
CHECK_SYMBOL_EXISTS(_aligned_malloc malloc.h HAVE__ALIGNED_MALLOC)
|
||||
CHECK_SYMBOL_EXISTS(lrintf math.h HAVE_LRINTF)
|
||||
CHECK_SYMBOL_EXISTS(powf math.h HAVE_POWF)
|
||||
CHECK_SYMBOL_EXISTS(sqrtf math.h HAVE_SQRTF)
|
||||
CHECK_SYMBOL_EXISTS(cosf math.h HAVE_COSF)
|
||||
CHECK_SYMBOL_EXISTS(sinf math.h HAVE_SINF)
|
||||
CHECK_SYMBOL_EXISTS(acosf math.h HAVE_ACOSF)
|
||||
CHECK_SYMBOL_EXISTS(asinf math.h HAVE_ASINF)
|
||||
CHECK_SYMBOL_EXISTS(atanf math.h HAVE_ATANF)
|
||||
CHECK_SYMBOL_EXISTS(atan2f math.h HAVE_ATAN2F)
|
||||
CHECK_SYMBOL_EXISTS(fabsf math.h HAVE_FABSF)
|
||||
CHECK_SYMBOL_EXISTS(log10f math.h HAVE_LOG10F)
|
||||
CHECK_SYMBOL_EXISTS(floorf math.h HAVE_FLOORF)
|
||||
|
||||
IF(HAVE_FENV_H)
|
||||
CHECK_SYMBOL_EXISTS(fesetround fenv.h HAVE_FESETROUND)
|
||||
|
||||
@@ -21,61 +21,6 @@
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef HAVE_POWF
|
||||
static __inline float powf(float x, float y)
|
||||
{ return (float)pow(x, y); }
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_SQRTF
|
||||
static __inline float sqrtf(float x)
|
||||
{ return (float)sqrt(x); }
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_COSF
|
||||
static __inline float cosf(float x)
|
||||
{ return (float)cos(x); }
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_SINF
|
||||
static __inline float sinf(float x)
|
||||
{ return (float)sin(x); }
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_ACOSF
|
||||
static __inline float acosf(float x)
|
||||
{ return (float)acos(x); }
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_ASINF
|
||||
static __inline float asinf(float x)
|
||||
{ return (float)asin(x); }
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_ATANF
|
||||
static __inline float atanf(float x)
|
||||
{ return (float)atan(x); }
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_ATAN2F
|
||||
static __inline float atan2f(float x, float y)
|
||||
{ return (float)atan2(x, y); }
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_FABSF
|
||||
static __inline float fabsf(float x)
|
||||
{ return (float)fabs(x); }
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_LOG10F
|
||||
static __inline float log10f(float x)
|
||||
{ return (float)log10(x); }
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_FLOORF
|
||||
static __inline float floorf(float x)
|
||||
{ return (float)floor(x); }
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
-33
@@ -71,39 +71,6 @@
|
||||
/* Define if we have the lrintf function */
|
||||
#cmakedefine HAVE_LRINTF
|
||||
|
||||
/* Define if we have the powf function */
|
||||
#cmakedefine HAVE_POWF
|
||||
|
||||
/* Define if we have the sqrtf function */
|
||||
#cmakedefine HAVE_SQRTF
|
||||
|
||||
/* Define if we have the cosf function */
|
||||
#cmakedefine HAVE_COSF
|
||||
|
||||
/* Define if we have the sinf function */
|
||||
#cmakedefine HAVE_SINF
|
||||
|
||||
/* Define if we have the acosf function */
|
||||
#cmakedefine HAVE_ACOSF
|
||||
|
||||
/* Define if we have the asinf function */
|
||||
#cmakedefine HAVE_ASINF
|
||||
|
||||
/* Define if we have the atanf function */
|
||||
#cmakedefine HAVE_ATANF
|
||||
|
||||
/* Define if we have the atan2f function */
|
||||
#cmakedefine HAVE_ATAN2F
|
||||
|
||||
/* Define if we have the fabsf function */
|
||||
#cmakedefine HAVE_FABSF
|
||||
|
||||
/* Define if we have the log10f function */
|
||||
#cmakedefine HAVE_LOG10F
|
||||
|
||||
/* Define if we have the floorf function */
|
||||
#cmakedefine HAVE_FLOORF
|
||||
|
||||
/* Define if we have the strtof function */
|
||||
#cmakedefine HAVE_STRTOF
|
||||
|
||||
|
||||
Reference in New Issue
Block a user