This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/19974] optimize div() so the asm insn that calcs quotient and remainder is used when available
- From: "daniel.gutson at tallertechnologies dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 20 Apr 2016 21:06:23 +0000
- Subject: [Bug math/19974] optimize div() so the asm insn that calcs quotient and remainder is used when available
- Auto-submitted: auto-generated
- References: <bug-19974-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=19974
--- Comment #4 from Daniel Gutson <daniel.gutson at tallertechnologies dot com> ---
(In reply to Andreas Schwab from comment #3)
> Inline assembly is nonportable and error prone, whereas the compiler already
> has all the support needed.
builtins are nonportable too :)
The compiler already optimizes the / and % operators used together, so an
inline version would suffice. What about an inline version? (C99 I guess)
without inline assembly.
--
You are receiving this mail because:
You are on the CC list for the bug.