hanchenye-llvm-project/libclc/generic/lib
Aaron Watry fbe439f8c0 Add mul_hi implementation [v2]
Everything except long/ulong is handled by just casting to the next larger type,
doing the math and then shifting/casting the result.

For 64-bit types, we break the high/low parts of each operand apart, and do
a FOIL-based multiplication.

v2:
  Discard the stack-overflow implementation due to copyright concerns.
  - The implementation is still FOIL-based, but discards the previous code.

Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
llvm-svn: 188684
2013-08-19 18:31:49 +00:00
..
geometric Add __CLC_ prefix to all macro definitions in headers 2013-07-08 17:27:02 +00:00
integer Add mul_hi implementation [v2] 2013-08-19 18:31:49 +00:00
math Add __CLC_ prefix to all macro definitions in headers 2013-07-08 17:27:02 +00:00
relational Implement any() builtin. Patch by Tom Stellard! 2012-10-08 03:39:21 +00:00
shared Add intN vloadN() implementations for address spaces 3 and 4 2013-08-12 14:42:51 +00:00
workitem PTX: move implementations of work-item and synchronisation functions 2012-08-05 22:25:37 +00:00
SOURCES Add mul_hi implementation [v2] 2013-08-19 18:31:49 +00:00
convert.cl Add some missing convert_* functions 2013-08-10 03:40:37 +00:00