This is the mail archive of the libc-alpha@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]

question regarding div / std::div implementation


Hi,

   is there any reason that std::div / cstdlib div is not implemented
in such a way that it is expanded to
the assembly instruction -when available- that calculates both the
remainder and the quotient,
e.g. x86' div ?

For example, why not an inline function with inline assembly? Or,
should this require a gcc built-in?

Thanks,

   Daniel.


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