Guardian Native C Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)

remquol(3) Guardian Native C Library Calls Reference Manual
NAME
remquol - Computes the remainder of a division operation with quotient for long double values
LIBRARY
H-series and J-series native Guardian processes: $SYSTEM.ZDLLnnn.ZCREDLL
32-bit H-series and J-series OSS processes: /G/system/zdllnnn/zcredll
64-bit H-series and J-series OSS processes: /G/system/zdllnnn/ycredll
SYNOPSIS
long double remquol(
long double x,
long double y
int *quo);
PARAMETERS
x Is a long double number that is the numerator of the division.
y Is a long double number that is the denominator of the division.
quo Is the quotient value of the division.
DESCRIPTION
The remquol() function is a long double version of the remquo() function; it takes long double
arguments and returns a long double result.
The remquol() function computes the same remainder as the remainderl() function. In the
object pointed to by quo, the remquol() function stores a value whose sign is the sign of x / y
and whose magnitude is congruent modulo 2
n
, where n is 7.
NOTES
This function is implemented only for the IEEE_float oating-point option. Applications using
this function cannot be compiled if the specified floating-point option is Tandem_float.
RETURN VALUES
The remquol() function returns the same values as the remainderl() function.
When the value of x or y is NaN, the remquol() function returns NaN.
When the value of x is positive or negative infinity, or the value of y is positive or negative zero
and the other argument is non-Nan, the remquol() function returns NaN and sets errno to
[EDOM].
ERRORS
If any of the following conditions occurs, the remquol() function sets errno to the correspond-
ing value:
[EDOM] The value of the x parameter is positive or negative infinity, or the value of the y
parameter is positive or negative zero and the other argument is non-Nan.
RELATED INFORMATION
Functions: fabs(3), fmod(3), remainder(3), remquo(3), remquof(3).
Files: math(4).
STANDARDS CONFORMANCE
This function conforms to the ISO/IEC 9899:1999 standard.
This function conforms to the IEEE Std 1003.1, 2004 Edition.
5122 Hewlett-Packard Company 527192-018