
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
5 lines
88 B
Common Lisp
5 lines
88 B
Common Lisp
#include <clc/clc.h>
|
|
|
|
#define __CLC_BODY <rhadd.inc>
|
|
#include <clc/integer/gentype.inc>
|