diff options
| author | Tom Stellard <thomas.stellard@amd.com> | 2013-06-26 18:20:46 +0000 |
|---|---|---|
| committer | Tom Stellard <thomas.stellard@amd.com> | 2013-06-26 18:20:46 +0000 |
| commit | ec87fb0b0c4c66edbec96e810ba4fd302dbaf50d (patch) | |
| tree | d8e6ff4ac960f9b693b1b519503ca48fa52a06c3 /libclc/generic/include/clc/integer | |
| parent | 30f554b23d35aba942a5223c912e4e0361413884 (diff) | |
| download | bcm5719-llvm-ec87fb0b0c4c66edbec96e810ba4fd302dbaf50d.tar.gz bcm5719-llvm-ec87fb0b0c4c66edbec96e810ba4fd302dbaf50d.zip | |
libclc: Add max() builtin function
Adds this function for both int and floating data types.
Patch by: Aaron Watry
llvm-svn: 184992
Diffstat (limited to 'libclc/generic/include/clc/integer')
| -rw-r--r-- | libclc/generic/include/clc/integer/max.h | 2 | ||||
| -rw-r--r-- | libclc/generic/include/clc/integer/max.inc | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/libclc/generic/include/clc/integer/max.h b/libclc/generic/include/clc/integer/max.h new file mode 100644 index 00000000000..e74a459fcf3 --- /dev/null +++ b/libclc/generic/include/clc/integer/max.h @@ -0,0 +1,2 @@ +#define BODY <clc/integer/max.inc> +#include <clc/integer/gentype.inc> diff --git a/libclc/generic/include/clc/integer/max.inc b/libclc/generic/include/clc/integer/max.inc new file mode 100644 index 00000000000..ce6c6d0d5fa --- /dev/null +++ b/libclc/generic/include/clc/integer/max.inc @@ -0,0 +1 @@ +_CLC_OVERLOAD _CLC_DECL GENTYPE max(GENTYPE a, GENTYPE b); |

