diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2012-08-05 22:24:36 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2012-08-05 22:24:36 +0000 |
commit | 05edc47f68b94fb1fc6a6e6f2a5baabb2abd9b59 (patch) | |
tree | f8e4db8b3002092c427ba7eadb48f2075d0a724e | |
parent | a5680175111af8b293dd9cd07eb8f465dda7d86b (diff) |
Fix declarations of __clc_add_sat_*. Patch by Lei Mou!
git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@161311 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | generic/lib/integer/add_sat.cl | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/generic/lib/integer/add_sat.cl b/generic/lib/integer/add_sat.cl index aae2e7f..7eb4e39 100644 --- a/generic/lib/integer/add_sat.cl +++ b/generic/lib/integer/add_sat.cl @@ -1,14 +1,14 @@ #include <clc/clc.h> // From add_sat.ll -_CLC_DECL char __clc_add_sat_s8(char, char); -_CLC_DECL char __clc_add_sat_u8(uchar, uchar); -_CLC_DECL char __clc_add_sat_s16(short, short); -_CLC_DECL char __clc_add_sat_u16(ushort, ushort); -_CLC_DECL char __clc_add_sat_s32(int, int); -_CLC_DECL char __clc_add_sat_u32(uint, uint); -_CLC_DECL char __clc_add_sat_s64(long, long); -_CLC_DECL char __clc_add_sat_u64(ulong, ulong); +_CLC_DECL char __clc_add_sat_s8(char, char); +_CLC_DECL uchar __clc_add_sat_u8(uchar, uchar); +_CLC_DECL short __clc_add_sat_s16(short, short); +_CLC_DECL ushort __clc_add_sat_u16(ushort, ushort); +_CLC_DECL int __clc_add_sat_s32(int, int); +_CLC_DECL uint __clc_add_sat_u32(uint, uint); +_CLC_DECL long __clc_add_sat_s64(long, long); +_CLC_DECL ulong __clc_add_sat_u64(ulong, ulong); _CLC_OVERLOAD _CLC_DEF char add_sat(char x, char y) { return __clc_add_sat_s8(x, y); |