logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

islessgreater.3p (3452B)


  1. '\" et
  2. .TH ISLESSGREATER "3P" 2017 "IEEE/The Open Group" "POSIX Programmer's Manual"
  3. .\"
  4. .SH PROLOG
  5. This manual page is part of the POSIX Programmer's Manual.
  6. The Linux implementation of this interface may differ (consult
  7. the corresponding Linux manual page for details of Linux behavior),
  8. or the interface may not be implemented on Linux.
  9. .\"
  10. .SH NAME
  11. islessgreater
  12. \(em test if x is less than or greater than y
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. #include <math.h>
  17. .P
  18. int islessgreater(real-floating \fIx\fP, real-floating \fIy\fP);
  19. .fi
  20. .SH DESCRIPTION
  21. The functionality described on this reference page is aligned with the
  22. ISO\ C standard. Any conflict between the requirements described here and the
  23. ISO\ C standard is unintentional. This volume of POSIX.1\(hy2017 defers to the ISO\ C standard.
  24. .P
  25. The
  26. \fIislessgreater\fR()
  27. macro shall determine whether its first argument is less than or
  28. greater than its second argument. The
  29. .IR islessgreater (\c
  30. .IR x ,
  31. .IR y )
  32. macro is similar to
  33. (\fIx\fR)\ <\ (\fIy\fR)\ ||\ (\fIx\fR)\ >\ (\fIy\fR); however,
  34. .IR islessgreater (\c
  35. .IR x ,
  36. .IR y )
  37. shall not raise the invalid floating-point exception when
  38. .IR x
  39. and
  40. .IR y
  41. are unordered (nor shall it evaluate
  42. .IR x
  43. and
  44. .IR y
  45. twice).
  46. .SH "RETURN VALUE"
  47. Upon successful completion, the
  48. \fIislessgreater\fR()
  49. macro shall return the value of
  50. (\fIx\fR)\ <\ (\fIy\fR)\ ||\ (\fIx\fR)\ >\ (\fIy\fR).
  51. .P
  52. If
  53. .IR x
  54. or
  55. .IR y
  56. is NaN, 0 shall be returned.
  57. .SH ERRORS
  58. No errors are defined.
  59. .LP
  60. .IR "The following sections are informative."
  61. .SH EXAMPLES
  62. None.
  63. .SH "APPLICATION USAGE"
  64. The relational and equality operators support the usual mathematical
  65. relationships between numeric values. For any ordered pair of numeric
  66. values, exactly one of the relationships (less, greater, and equal) is
  67. true. Relational operators may raise the invalid floating-point
  68. exception when argument values are NaNs. For a NaN and a numeric value,
  69. or for two NaNs, just the unordered relationship is true. This macro
  70. is a quiet (non-floating-point exception raising) version of a
  71. relational operator. It facilitates writing efficient code that
  72. accounts for NaNs without suffering the invalid floating-point
  73. exception. In the SYNOPSIS section,
  74. .BR real-floating
  75. indicates that the argument shall be an expression of
  76. .BR real-floating
  77. type.
  78. .SH RATIONALE
  79. None.
  80. .SH "FUTURE DIRECTIONS"
  81. None.
  82. .SH "SEE ALSO"
  83. .IR "\fIisgreater\fR\^(\|)",
  84. .IR "\fIisgreaterequal\fR\^(\|)",
  85. .IR "\fIisless\fR\^(\|)",
  86. .IR "\fIislessequal\fR\^(\|)",
  87. .IR "\fIisunordered\fR\^(\|)"
  88. .P
  89. The Base Definitions volume of POSIX.1\(hy2017,
  90. .IR "\fB<math.h>\fP"
  91. .\"
  92. .SH COPYRIGHT
  93. Portions of this text are reprinted and reproduced in electronic form
  94. from IEEE Std 1003.1-2017, Standard for Information Technology
  95. -- Portable Operating System Interface (POSIX), The Open Group Base
  96. Specifications Issue 7, 2018 Edition,
  97. Copyright (C) 2018 by the Institute of
  98. Electrical and Electronics Engineers, Inc and The Open Group.
  99. In the event of any discrepancy between this version and the original IEEE and
  100. The Open Group Standard, the original IEEE and The Open Group Standard
  101. is the referee document. The original Standard can be obtained online at
  102. http://www.opengroup.org/unix/online.html .
  103. .PP
  104. Any typographical or formatting errors that appear
  105. in this page are most likely
  106. to have been introduced during the conversion of the source files to
  107. man page format. To report such errors, see
  108. https://www.kernel.org/doc/man-pages/reporting_bugs.html .