compare(3C)
isgreater, isgreaterf, isgreaterl, isgreaterequalf, isgreaterequall, islessf, islessl, islessequalf, islessequall, islessgreaterf, isgreaterequal, isless, islessequal, islessgreater, signbit, signbitf, signbitl - comparison macros
As shipped in IRIX 6.5.19. Added in IRIX 6.5.19.
NAME isgreater, isgreaterf, isgreaterl, isgreaterequalf, isgreaterequall, islessf, islessl, islessequalf, islessequall, islessgreaterf, isgreaterequal, isless, islessequal, islessgreater, signbit, signbitf, signbitl - comparison macros SYNOPSIS #include <math.h> int isgreater(doublex, double y); int isgreaterequal(double x, double y); int isless(double x, double y); int islessequal(double x, double y); int islessgreater(double x, double y); int signbit(x); DESCRIPTION These routines are not available for programs compiled with the O32 ABI. Functions in the standard math library (libm.a) are referred to as -lm versions. Those in mathx library (libmx.a) are referred to as -lmx versions, and those in the the BSD math library (libm43.a) are referred to as -lm43 versions. These macros are quiet (non floating-point exception raising) versions of the relational operators. double in the synopsis lines indicates that the argument shall be an expression of real floating type. The isgreater macro determines if its first argument is greater than its second argument. The isgreaterequal macro determines if its first argument is greater than or equal to its second argument. The isless macro determines if its first argument is less than its second argument. The islessequal macro determines if its first argument is less than or equal to its second argument. The islessgreater macro determines if its first argument is less than or greater than its second argument. The signbit macro determines if the sign of its argument value is negative. These macros are implemented in terms of ordinary functions depending on the argument used; for example, if x is a float value, the macro is redefined as isgreaterf. If x is double, the macro is redefined as isgreater. If x is long double, the macro is redefined as isgreaterl. NOTES Long double operations on this system are only supported in round to nearest rounding mode (the default). The system must be in round to nearest rounding mode when calling any of the long double functions, or incorrect answers will result. RETURN VALUES The -lm and -lmx versions always return the default Quiet NaN and set errno to EDOM when a NaN is used as an argument. A NaN argument usually causes the -lm43 versions to return the same argument. The -lm43 versions never set errno. See matherr(3M) for a description of error handling for -lmx functions. SEE ALSO math(3M), exp(3M), matherr(3M)