Skip to content
Commit fbe439f8 authored by Aaron Watry's avatar Aaron Watry
Browse files

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: default avatarTom Stellard <thomas.stellard@amd.com>
llvm-svn: 188684
parent 804a655d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment