Changeset View
Changeset View
Standalone View
Standalone View
head/lang/beignet/files/patch-utests_builtin__exp.cpp
--- utests/builtin_exp.cpp.orig 2015-01-16 10:24:13 UTC | --- utests/builtin_exp.cpp.orig 2017-01-20 10:40:51 UTC | ||||
+++ utests/builtin_exp.cpp | +++ utests/builtin_exp.cpp | ||||
@@ -25,7 +25,11 @@ static void cpu_compiler_math(float *dst | @@ -27,7 +27,11 @@ static void cpu_compiler_math(float *dst | ||||
dst[0] = exp(x); | dst[0] = exp(x); | ||||
dst[1] = exp2(x); | dst[1] = exp2(x); | ||||
+#ifndef __FreeBSD__ | +#ifndef __FreeBSD__ | ||||
dst[2] = exp10(x); | dst[2] = exp10(x); | ||||
+#else | +#else | ||||
+ dst[2] = powf(10,x); | + dst[2] = powf(10,x); | ||||
+#endif | +#endif | ||||
dst[3] = expm1(x); | dst[3] = expm1(x); | ||||
dst[4] = x; | dst[4] = x; | ||||
} | } |