summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErik Schnetter <schnetter@gmail.com>2013-07-07 10:42:22 -0400
committerErik Schnetter <schnetter@gmail.com>2013-07-07 10:42:22 -0400
commit70e356503abcb95d0cbf238d011312b8c07e3bc7 (patch)
treef2a9428cc03448d71c96e1bdc9176b15bf5e8e78
parent0f753f09a81a4b5b9879bd94887341cf3d3cf172 (diff)
downloadvecmathlib-70e356503abcb95d0cbf238d011312b8c07e3bc7.zip
vecmathlib-70e356503abcb95d0cbf238d011312b8c07e3bc7.tar.gz
Use single precision versions for all functions with math.h
-rw-r--r--floattypes.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/floattypes.h b/floattypes.h
index 249370d..78f0d8b 100644
--- a/floattypes.h
+++ b/floattypes.h
@@ -56,8 +56,8 @@ namespace std {
#undef isnormal
#undef signbit
- inline float asinh(float x) { return ::asinh(x); }
- inline float acosh(float x) { return ::acosh(x); }
+ inline float asinh(float x) { return ::asinhf(x); }
+ inline float acosh(float x) { return ::acoshf(x); }
inline float atanh(float x) { return ::atanh(x); }
inline float cbrt(float x) { return ::cbrtf(x); }
// inline float ceil(float x) { return ::ceilf(x); }
@@ -69,7 +69,7 @@ namespace std {
inline float fma(float x, float y, float z) { return ::fmaf(x, y, z); }
inline float fmax(float x, float y) { return ::fmaxf(x, y); }
inline float fmin(float x, float y) { return ::fminf(x, y); }
- // inline float frexp(float x, int* r) { return ::frexp(x, r); }
+ // inline float frexp(float x, int* r) { return ::frexpf(x, r); }
inline float hypot(float x, float y) { return ::hypotf(x, y); }
inline int ilogb(float x) { return ::ilogbf(x); }
inline bool isfinite(float x) { return libc_isfinite(x); }
OpenPOWER on IntegriCloud