summaryrefslogtreecommitdiff
path: root/src/core/cpu/builtins.cpp
diff options
context:
space:
mode:
authorDenis Steckelmacher <steckdenis@yahoo.fr>2011-10-19 12:31:50 +0200
committerDenis Steckelmacher <steckdenis@yahoo.fr>2011-10-19 12:31:50 +0200
commitc377dd4e18c7321db6f12cc4187ec1a2fbc7cb47 (patch)
tree3a2fad3721cb18df7871583ae88d4ec4ef1dd12f /src/core/cpu/builtins.cpp
parentcc24f00b869e30a26002f88331ae68a57139b099 (diff)
Implement some math built-ins.
acos, acosh, acospi, asin, asinh, asinpi, atan, atan2, atanh, atanpi, atan2pi, cbrt, ceil, copysign, cos, cosh and cospi. There is not yet tests for these function, except for copysign (the only one not simply using a STL or Boost math function).
Diffstat (limited to 'src/core/cpu/builtins.cpp')
-rw-r--r--src/core/cpu/builtins.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/cpu/builtins.cpp b/src/core/cpu/builtins.cpp
index 04f54a6..de99499 100644
--- a/src/core/cpu/builtins.cpp
+++ b/src/core/cpu/builtins.cpp
@@ -51,6 +51,7 @@
#include <iostream>
#include <cstring>
#include <cmath>
+#include <boost/math/special_functions.hpp>
#include <stdio.h>
@@ -401,6 +402,8 @@ static void read_imageuif(uint32_t *result, Image2D *image, float x, float y,
* Built-in functions generated by src/runtime/builtins.py
*/
+#define REPL(x) for (unsigned int i=0; i<x; ++i)
+
#include <runtime/builtins_impl.h>
/*