aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/c/i64_umulh.c
Commit message (Collapse)AuthorAgeFilesLines
* Turn 64-bit integer division and modulus by constants into multiply-highXavier Leroy2016-10-041-0/+66
This trick was already implemented for 32-bit integer division and modulus. Here we extend it to the 64-bit case. For 32-bit target processors, the runtime library must implement 64-bit multiply-high (signed and unsigned). Tentative implementations are provided for IA32 and PowerPC, but need testing.