[libclc] r184988 - Implement ceil() builtin

Tom Stellard thomas.stellard at amd.com
Wed Jun 26 11:20:30 PDT 2013


Author: tstellar
Date: Wed Jun 26 13:20:30 2013
New Revision: 184988

URL: http://llvm.org/viewvc/llvm-project?rev=184988&view=rev
Log:
Implement ceil() builtin

Added:
    libclc/trunk/generic/include/clc/math/ceil.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=184988&r1=184987&r2=184988&view=diff
==============================================================================
--- libclc/trunk/generic/include/clc/clc.h (original)
+++ libclc/trunk/generic/include/clc/clc.h Wed Jun 26 13:20:30 2013
@@ -33,6 +33,7 @@
 
 /* 6.11.2 Math Functions */
 #include <clc/math/cos.h>
+#include <clc/math/ceil.h>
 #include <clc/math/exp.h>
 #include <clc/math/exp2.h>
 #include <clc/math/fabs.h>

Added: libclc/trunk/generic/include/clc/math/ceil.h
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/generic/include/clc/math/ceil.h?rev=184988&view=auto
==============================================================================
--- libclc/trunk/generic/include/clc/math/ceil.h (added)
+++ libclc/trunk/generic/include/clc/math/ceil.h Wed Jun 26 13:20:30 2013
@@ -0,0 +1,6 @@
+#undef ceil
+#define ceil __clc_ceil
+
+#define FUNCTION __clc_ceil
+#define INTRINSIC "llvm.ceil"
+#include <clc/math/unary_intrin.inc>





More information about the cfe-commits mailing list