https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79219
Bug ID: 79219
Summary: Feature request: double width/single width division
and remainder
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: hpa at zytor dot com
Target Milestone: ---
A fair number of numerical algorithms could use a double width/single width
division (and remainder) operation. This is not part of standard C, and
although gcc has __int128 on 64-bit platforms only, there is always the
fundamental problem that there is going to be a largest integer size.
Hopefully this could eventually be added to the C standard, but an
implementation would be a major step in that direction. I believe we already
have algorithms that could use this feature in the Linux kernel.