Bug 4449 - remquo function is not documented
Summary: remquo function is not documented
Status: NEW
Alias: None
Product: glibc
Classification: Unclassified
Component: manual (show other bugs)
Version: unspecified
: P2 normal
Target Milestone: ---
Assignee: Roland McGrath
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-02 14:00 UTC by Vincent Lefèvre
Modified: 2014-07-04 16:37 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:
fweimer: security-


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent Lefèvre 2007-05-02 14:00:24 UTC
The remquo function is not documented in manual/arith.texi; it should be added
to Section 20.8.4 "Remainder Functions".

Also note that the ISO C99 standard says:

       7.12.10.3  The remquo functions
[...]
       [#2] The remquo functions compute the same remainder as the
       remainder functions. In the object pointed to by quo they store
       a value whose sign is the sign of x/y and whose magnitude is
       congruent modulo 2^n to the magnitude of the integral quotient
       of x/y, where n is an implementation-defined integer greater
                             ^^^^^^^^^^^^^^^^^^^^^^
       than or equal to 3.

and

       [#1] implementation-defined behavior
       unspecified behavior where each implementation documents how
       the choice is made

So, how n is chosen should also be documented.