freebsd-ports/lang/beignet/files/patch-utests_builtin__exp.cpp
Matthew Rezny 082ae04214 Update to 1.3.0
Approved by:	swills (mentor)
Differential Revision:	https://reviews.freebsd.org/D9843
2017-03-01 12:14:21 +00:00

14 lines
308 B
C++

--- utests/builtin_exp.cpp.orig 2017-01-20 10:40:51 UTC
+++ utests/builtin_exp.cpp
@@ -27,7 +27,11 @@ static void cpu_compiler_math(float *dst
dst[0] = exp(x);
dst[1] = exp2(x);
+#ifndef __FreeBSD__
dst[2] = exp10(x);
+#else
+ dst[2] = powf(10,x);
+#endif
dst[3] = expm1(x);
dst[4] = x;
}