Add native_powr builtin. Patch by Tom Stellard!
authorPeter Collingbourne <peter@pcc.me.uk>
Mon, 8 Oct 2012 03:39:05 +0000 (03:39 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Mon, 8 Oct 2012 03:39:05 +0000 (03:39 +0000)
llvm-svn: 165385

libclc/generic/include/clc/clc.h
libclc/generic/include/clc/math/native_powr.h [new file with mode: 0644]

index 565b505..fc41f76 100644 (file)
@@ -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/libclc/generic/include/clc/math/native_powr.h b/libclc/generic/include/clc/math/native_powr.h
new file mode 100644 (file)
index 0000000..e8a37d9
--- /dev/null
@@ -0,0 +1 @@
+#define native_powr pow