aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-11-15 17:53:05 -0800
committerChris Robinson <[email protected]>2018-11-15 17:53:05 -0800
commit7c933087718bd1b789f2638164bcf2f8698647cb (patch)
treeff51bb8d94d00f3ef168f63ede2ab85e3224dd47 /common
parentdc622b3182694793d0189acf402bda6bafdf589a (diff)
Remove checks for functions that always exist
They're part of C++11 and available on the testing systems. If some system has trouble, switching to proper C++ calls should fix it.
Diffstat (limited to 'common')
-rw-r--r--common/math_defs.h22
1 files changed, 0 insertions, 22 deletions
diff --git a/common/math_defs.h b/common/math_defs.h
index 3e8dbe76..513570f0 100644
--- a/common/math_defs.h
+++ b/common/math_defs.h
@@ -32,28 +32,6 @@ static const union msvc_inf_hack {
#define HUGE_VALF (msvc_inf_union.f)
#endif
-#ifndef HAVE_CBRTF
-static inline float my_cbrtf(float f)
-{
- return powf(f, 1.0f/3.0f);
-}
-#define cbrtf my_cbrtf
-#endif
-
-#ifndef HAVE_COPYSIGNF
-static inline float my_copysignf(float x, float y)
-{
- union {
- float f;
- unsigned int u;
- } ux = { x }, uy = { y };
- ux.u &= 0x7fffffffu;
- ux.u |= (uy.u&0x80000000u);
- return ux.f;
-}
-#define copysignf my_copysignf
-#endif
-
#define DEG2RAD(x) ((float)(x) * (float)(M_PI/180.0))
#define RAD2DEG(x) ((float)(x) * (float)(180.0/M_PI))