From 49b4d8cc656488f9d389e06a49e6e699010e2bd8 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Sun, 5 Aug 2012 22:24:36 +0000 Subject: [PATCH] Fix declarations of __clc_add_sat_*. Patch by Lei Mou! llvm-svn: 161311 --- libclc/generic/lib/integer/add_sat.cl | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libclc/generic/lib/integer/add_sat.cl b/libclc/generic/lib/integer/add_sat.cl index aae2e7fdd142..7eb4e3974efa 100644 --- a/libclc/generic/lib/integer/add_sat.cl +++ b/libclc/generic/lib/integer/add_sat.cl @@ -1,14 +1,14 @@ #include // 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); -- GitLab