summaryrefslogtreecommitdiffstats
path: root/libclc/generic/lib/integer/mul_hi.cl
Commit message (Collapse)AuthorAgeFilesLines
* s/_CLC_DECL/_CLC_DEF/Tom Stellard2013-10-311-8/+8
| | | | | | | | | Some function definitions were using _CLC_DECL, which meant that they weren't being marked as always_inline. Reviewed-by and Tested-by: Aaron Watry <awatry@gmail.com> llvm-svn: 193754
* Add mul_hi implementation [v2]Aaron Watry2013-08-191-0/+109
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
OpenPOWER on IntegriCloud