View | Details | Raw Unified | Return to bug 212
Collapse All | Expand All

(-)../../../libc/manual/arith.texi (+23 lines)
Lines 1546-1551 Link Here
1546
This function is another name for @code{drem}.
1546
This function is another name for @code{drem}.
1547
@end deftypefun
1547
@end deftypefun
1548
1548
1549
@comment math.h
1550
@comment ISO_C99
1551
@deftypefun double remquo (double @var{numerator}, double @var{denominator}, int @var{*quo})
1552
@comment math.h
1553
@comment ISO_C99
1554
@deftypefunx float remquof (float @var{numerator}, float @var{denominator}, int @var{*quo})
1555
@comment math.h
1556
@comment ISO_C99
1557
@deftypefunx {long double} remquol (long double @var{numerator}, long double @var{denominator}, int @var{*quo})
1558
1559
These  functions  compute the remainder and part of the quotient upon division
1560
of @var{numerator} by @var{denominator}. A few bits of the quotient are stored
1561
via the @var{quo} pointer. The remainder is returned as function value.
1562
1563
The value of the remainder is the same as that computed by the @code{remainder} 
1564
function above. The value stored via the @var{quo} pointer has the sign of 
1565
@var{numerator}/@var{denominator} and agrees with the quotient in at least the 
1566
low order 3 bits.
1567
1568
For example, @code{remquo(29.0,3.0)} returns @code{-1.0} and might store @code{2}.
1569
Note that the actual quotient might not fit in an integer.
1570
@end deftypefun
1571
1549
@node FP Bit Twiddling
1572
@node FP Bit Twiddling
1550
@subsection Setting and modifying single bits of FP values
1573
@subsection Setting and modifying single bits of FP values
1551
@cindex FP arithmetic
1574
@cindex FP arithmetic

Return to bug 212