Author: awatry
Date: Tue Sep 12 18:40:25 2017
New Revision: 313107

URL: http://llvm.org/viewvc/llvm-project?rev=313107&view=rev
Log:
Add native_recip(x) as ((1)/(x))

Signed-off-by: Aaron Watry <awa...@gmail.com>
Acked-by: Jan Vesely <jan.ves...@rutgers.edu>

Added:
    libclc/trunk/generic/include/clc/math/native_recip.h
Modified:
    libclc/trunk/generic/include/clc/clc.h

Modified: libclc/trunk/generic/include/clc/clc.h
URL: 
http://llvm.org/viewvc/llvm-project/libclc/trunk/generic/include/clc/clc.h?rev=313107&r1=313106&r2=313107&view=diff
==============================================================================
--- libclc/trunk/generic/include/clc/clc.h (original)
+++ libclc/trunk/generic/include/clc/clc.h Tue Sep 12 18:40:25 2017
@@ -106,6 +106,7 @@
 #include <clc/math/native_log.h>
 #include <clc/math/native_log2.h>
 #include <clc/math/native_powr.h>
+#include <clc/math/native_recip.h>
 #include <clc/math/native_sin.h>
 #include <clc/math/native_sqrt.h>
 #include <clc/math/native_rsqrt.h>

Added: libclc/trunk/generic/include/clc/math/native_recip.h
URL: 
http://llvm.org/viewvc/llvm-project/libclc/trunk/generic/include/clc/math/native_recip.h?rev=313107&view=auto
==============================================================================
--- libclc/trunk/generic/include/clc/math/native_recip.h (added)
+++ libclc/trunk/generic/include/clc/math/native_recip.h Tue Sep 12 18:40:25 
2017
@@ -0,0 +1 @@
+#define native_recip(x) ((1) / (x))


_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to