[cfe-commits] [libclc] r162273 - in /libclc/trunk/generic/include/clc: clc.h math/floor.h
Peter Collingbourne
peter at pcc.me.uk
Tue Aug 21 03:48:21 PDT 2012
Author: pcc
Date: Tue Aug 21 05:48:21 2012
New Revision: 162273
URL: http://llvm.org/viewvc/llvm-project?rev=162273&view=rev
Log:
Add floor builtin. Patch by Cassie Epps!
Added:
libclc/trunk/generic/include/clc/math/floor.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=162273&r1=162272&r2=162273&view=diff
==============================================================================
--- libclc/trunk/generic/include/clc/clc.h (original)
+++ libclc/trunk/generic/include/clc/clc.h Tue Aug 21 05:48:21 2012
@@ -36,6 +36,7 @@
#include <clc/math/exp.h>
#include <clc/math/exp2.h>
#include <clc/math/fabs.h>
+#include <clc/math/floor.h>
#include <clc/math/fma.h>
#include <clc/math/hypot.h>
#include <clc/math/log.h>
Added: libclc/trunk/generic/include/clc/math/floor.h
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/generic/include/clc/math/floor.h?rev=162273&view=auto
==============================================================================
--- libclc/trunk/generic/include/clc/math/floor.h (added)
+++ libclc/trunk/generic/include/clc/math/floor.h Tue Aug 21 05:48:21 2012
@@ -0,0 +1,6 @@
+#undef floor
+#define floor __clc_floor
+
+#define FUNCTION __clc_floor
+#define INTRINSIC "llvm.floor"
+#include <clc/math/unary_intrin.inc>
More information about the cfe-commits
mailing list