[PATCH] Intrin: Add _umul128
David Majnemer
david.majnemer at gmail.com
Tue Dec 2 14:59:34 PST 2014
Hi rnk, hansw, thakis,
Implement _umul128; it provides the high and low halves of a 128-bit
multiply. We can simply use our __int128 arithmetic to implement this,
we generate great code for it:
movq %rdx, %rax
mulq %rcx
movq %rdx, (%r8)
retq
http://reviews.llvm.org/D6486
Files:
lib/Headers/Intrin.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6486.16830.patch
Type: text/x-patch
Size: 996 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141202/bd447fdc/attachment.bin>
More information about the cfe-commits
mailing list