This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug math/19974] optimize div() so the asm insn that calcs quotient and remainder is used when available


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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]