
(x + y) >> 1 gets changed to: (x>>1) + (y>>1) + (x&y&1) Saves us having to do any llvm assembly and overflow checking in the addition. Reviewed-by: Tom Stellard <thomas.stellard@amd.com> llvm-svn: 188476
5 lines
87 B
Common Lisp
5 lines
87 B
Common Lisp
#include <clc/clc.h>
|
|
|
|
#define __CLC_BODY <hadd.inc>
|
|
#include <clc/integer/gentype.inc>
|