summaryrefslogtreecommitdiff
path: root/generic
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2012-10-08 03:39:05 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2012-10-08 03:39:05 +0000
commit5c2bfa665589a07301860bb2da3912ce5a8323db (patch)
treec4a14fbb23d3e2dafd9820cfbc75134dfd3e5a62 /generic
parent3290bdd44b38ca1528e7ac7da953a739289700a9 (diff)
Add native_powr builtin. Patch by Tom Stellard!
git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@165385 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'generic')
-rw-r--r--generic/include/clc/clc.h1
-rw-r--r--generic/include/clc/math/native_powr.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/generic/include/clc/clc.h b/generic/include/clc/clc.h
index 565b505..fc41f76 100644
--- a/generic/include/clc/clc.h
+++ b/generic/include/clc/clc.h
@@ -51,6 +51,7 @@
#include <clc/math/native_exp2.h>
#include <clc/math/native_log.h>
#include <clc/math/native_log2.h>
+#include <clc/math/native_powr.h>
#include <clc/math/native_sin.h>
#include <clc/math/native_sqrt.h>
#include <clc/math/rsqrt.h>
diff --git a/generic/include/clc/math/native_powr.h b/generic/include/clc/math/native_powr.h
new file mode 100644
index 0000000..e8a37d9
--- /dev/null
+++ b/generic/include/clc/math/native_powr.h
@@ -0,0 +1 @@
+#define native_powr pow