summaryrefslogtreecommitdiffstats
path: root/libclc/generic/include/clc/math/native_recip.h
diff options
context:
space:
mode:
authorAaron Watry <awatry@gmail.com>2017-09-13 01:40:25 +0000
committerAaron Watry <awatry@gmail.com>2017-09-13 01:40:25 +0000
commite62f5fa64d051e8431e3ffb9d78c074ea80ad91e (patch)
treed9b07b3bd337468ce3e7100627870dd9c32ecea9 /libclc/generic/include/clc/math/native_recip.h
parentd8328f13accfc12f07978f35dbbf8c8e1e78ffdc (diff)
downloadbcm5719-llvm-e62f5fa64d051e8431e3ffb9d78c074ea80ad91e.tar.gz
bcm5719-llvm-e62f5fa64d051e8431e3ffb9d78c074ea80ad91e.zip
Add native_recip(x) as ((1)/(x))
Signed-off-by: Aaron Watry <awatry@gmail.com> Acked-by: Jan Vesely <jan.vesely@rutgers.edu> llvm-svn: 313107
Diffstat (limited to 'libclc/generic/include/clc/math/native_recip.h')
-rw-r--r--libclc/generic/include/clc/math/native_recip.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libclc/generic/include/clc/math/native_recip.h b/libclc/generic/include/clc/math/native_recip.h
new file mode 100644
index 00000000000..51876614a92
--- /dev/null
+++ b/libclc/generic/include/clc/math/native_recip.h
@@ -0,0 +1 @@
+#define native_recip(x) ((1) / (x))
OpenPOWER on IntegriCloud