diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2013-06-26 18:20:30 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2013-06-26 18:20:30 +0000 |
commit | b77eb2d4a7c4d59793ec33752cb1d5ca573b793d (patch) | |
tree | 7b96f36612711bb4d5e0e655f5f733df50247b15 | |
parent | 0fd3463974cf8b2aad009ee97dd240222ffd7065 (diff) |
Implement ceil() builtin
git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@184988 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | generic/include/clc/clc.h | 1 | ||||
-rw-r--r-- | generic/include/clc/math/ceil.h | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/generic/include/clc/clc.h b/generic/include/clc/clc.h index c917a46..4394c9e 100644 --- a/generic/include/clc/clc.h +++ b/generic/include/clc/clc.h @@ -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> diff --git a/generic/include/clc/math/ceil.h b/generic/include/clc/math/ceil.h new file mode 100644 index 0000000..b8e4b08 --- /dev/null +++ b/generic/include/clc/math/ceil.h @@ -0,0 +1,6 @@ +#undef ceil +#define ceil __clc_ceil + +#define FUNCTION __clc_ceil +#define INTRINSIC "llvm.ceil" +#include <clc/math/unary_intrin.inc> |