Displaying 1 result from an estimated 1 matches for "8cc0fe42".
2017 Oct 19
2
Why x86_64 divq is not used for 128-bit by 64-bit division?
Hi there,
Let's have this C code:
unsigned long div(unsigned __int128 n, unsigned long d)
{
return n / d;
}
I would assume that the divq is the perfect match here. But the compiler
generates the
code that calls the __udivti3 procedure which performs 128-bit by 128-bit
division.
Why is divq not used here?
- Paweł
-------------- next part --------------
An HTML attachment was scrubbed...