From 253a9de5fb3f51570f88ebadd7a495c06118a246 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Fri, 22 Dec 2017 15:45:37 +0100 Subject: [PATCH] [libaxx] Add std::erf in cmath --- libaxx/include/cmath | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libaxx/include/cmath b/libaxx/include/cmath index af5a4c434..d5d1d4964 100644 --- a/libaxx/include/cmath +++ b/libaxx/include/cmath @@ -51,6 +51,8 @@ #undef copysign #undef cos #undef cosh +#undef erf +#undef erfc #undef exp #undef expm1 #undef fabs @@ -92,6 +94,8 @@ static inline double cos(double x) { return __builtin_cos(x); } static inline float cos(float x) { return __builtin_cosf(x); } static inline double cosh(double x) { return __builtin_cosh(x); } static inline float cosh(float x) { return __builtin_coshf(x); } +static inline double erf(double x) { return __builtin_erf(x); } +static inline double erfc(double x) { return __builtin_erfc(x); } static inline double exp(double x) { return __builtin_exp(x); } static inline float exp(float x) { return __builtin_expf(x); } static inline double fabs(double x) { return __builtin_fabs(x); }