llvm-project/libclc/generic/include/clc
Aaron Watry 8548725f29 Add rhadd builtin
rhadd = (x+y+1)>>1

Implemented as:
(x>>1) + (y>>1) + ((x&1)|(y&1))

This prevents us having to do assembly addition and overflow detection

Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
llvm-svn: 188477
2013-08-15 19:21:10 +00:00
..
geometric Add __CLC_ prefix to all macro definitions in headers 2013-07-08 17:27:02 +00:00
integer Add rhadd builtin 2013-08-15 19:21:10 +00:00
math Implement generic rint() 2013-08-10 03:40:33 +00:00
relational Add bitselect() builtin 2013-07-08 17:26:33 +00:00
shared Add __CLC_ prefix to all macro definitions in headers 2013-07-08 17:27:02 +00:00
synchronization PTX: move implementations of work-item and synchronisation functions 2012-08-05 22:25:37 +00:00
workitem PTX: move implementations of work-item and synchronisation functions 2013-06-26 18:19:54 +00:00
as_type.h
clc.h Add rhadd builtin 2013-08-15 19:21:10 +00:00
clcfunc.h Remove the static keyword from the _CLC_INLINE macro 2013-06-26 18:20:18 +00:00
clcmacro.h
clctypes.h
convert.h Add some missing convert_* functions 2013-08-10 03:40:37 +00:00
gentype.inc Add __CLC_ prefix to all macro definitions in headers 2013-07-08 17:27:02 +00:00