[libclc] r313107 - Add native_recip(x) as ((1)/(x))

Aaron Watry via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 12 18:40:25 PDT 2017


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 <awatry at gmail.com>
Acked-by: Jan Vesely <jan.vesely at 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))




More information about the cfe-commits mailing list