[cfe-commits] [libclc] r161311 - /libclc/trunk/generic/lib/integer/add_sat.cl
Peter Collingbourne
peter at pcc.me.uk
Sun Aug 5 15:24:37 PDT 2012
Author: pcc
Date: Sun Aug 5 17:24:36 2012
New Revision: 161311
URL: http://llvm.org/viewvc/llvm-project?rev=161311&view=rev
Log:
Fix declarations of __clc_add_sat_*. Patch by Lei Mou!
Modified:
libclc/trunk/generic/lib/integer/add_sat.cl
Modified: libclc/trunk/generic/lib/integer/add_sat.cl
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/generic/lib/integer/add_sat.cl?rev=161311&r1=161310&r2=161311&view=diff
==============================================================================
--- libclc/trunk/generic/lib/integer/add_sat.cl (original)
+++ libclc/trunk/generic/lib/integer/add_sat.cl Sun Aug 5 17:24:36 2012
@@ -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);
More information about the cfe-commits
mailing list