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

Re: Does remquo work?


On Sun, 2002-06-09 at 10:37, Stephen L Moshier wrote:

> Responding to an inquiry, I tried to use "remquo" in a sentence
> and it doesn't seem to make sense.  The standard says (I think) that
> along with the remainder it returns at least 3 low-order bits of the
> integer-valued quotient.  So if you put, say, 4.1 in the denominator
> and 7 * 4.1 in the numerator, the quotient should read 7.
> Instead, it returns 2:

There were three mistakes in the implementation.  I hope I fixed all of
them.  At least I now get the correct result with your example code.

Thanks,

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------

Attachment: signature.asc
Description: This is a digitally signed message part


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