Bug 4449

Summary: remquo function is not documented
Product: glibc Reporter: Vincent Lefèvre <vincent-srcware>
Component: manualAssignee: Roland McGrath <roland>
Status: NEW ---    
Severity: normal CC: glibc-bugs
Priority: P2 Flags: fweimer: security-
Version: unspecified   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:

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.