[libclc] r188130 - Implement generic rint()

Tom Stellard thomas.stellard at amd.com
Fri Aug 9 20:40:33 PDT 2013


Author: tstellar
Date: Fri Aug  9 22:40:33 2013
New Revision: 188130

URL: http://llvm.org/viewvc/llvm-project?rev=188130&view=rev
Log:
Implement generic rint()

Added:
    libclc/trunk/generic/include/clc/math/rint.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=188130&r1=188129&r2=188130&view=diff
==============================================================================
--- libclc/trunk/generic/include/clc/clc.h (original)
+++ libclc/trunk/generic/include/clc/clc.h Fri Aug  9 22:40:33 2013
@@ -46,6 +46,7 @@
 #include <clc/math/log2.h>
 #include <clc/math/mad.h>
 #include <clc/math/pow.h>
+#include <clc/math/rint.h>
 #include <clc/math/sin.h>
 #include <clc/math/sqrt.h>
 #include <clc/math/native_cos.h>

Added: libclc/trunk/generic/include/clc/math/rint.h
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/generic/include/clc/math/rint.h?rev=188130&view=auto
==============================================================================
--- libclc/trunk/generic/include/clc/math/rint.h (added)
+++ libclc/trunk/generic/include/clc/math/rint.h Fri Aug  9 22:40:33 2013
@@ -0,0 +1,6 @@
+#undef rint
+#define rint __clc_rint
+
+#define __CLC_FUNCTION __clc_rint
+#define __CLC_INTRINSIC "llvm.rint"
+#include <clc/math/unary_intrin.inc>





More information about the cfe-commits mailing list