Does remquo work?

Ulrich Drepper drepper@redhat.com
Thu Jun 20 00:21:00 GMT 2002


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   `------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 232 bytes
Desc: This is a digitally signed message part
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20020620/e1f7daa4/attachment.sig>


More information about the Libc-alpha mailing list