The description of the `isunordered()` macro states that it returns non-zero if none of its parameters are NaNs, whereas it actually returns non-zero if any of its parameters are NaNs. I propose changing the sentence: > The isunordered() macro takes arguments x and y and returns non-zero if > and only if neither x nor y are NaNs. to read instead: > The isunordered() macro takes arguments x and y and returns non-zero if > and only if any of x or y are NaN. The word 'any' could be replaced with 'one or both' but I think 'either' tends to have an exclusive connotation so may not be appropriate.
A commit references this bug: Author: eadler Date: Sun Dec 31 00:46:42 UTC 2017 New revision: 327398 URL: https://svnweb.freebsd.org/changeset/base/327398 Log: isgreater(3): correct description of isunordered macro PR: 211376 Submitted by: Duane <parakleta@darkreality.org> MFC After: 1 week Changes: head/lib/libc/gen/isgreater.3
A commit references this bug: Author: eadler Date: Sun Jan 7 00:38:34 UTC 2018 New revision: 327661 URL: https://svnweb.freebsd.org/changeset/base/327661 Log: MFC r327398: isgreater(3): correct description of isunordered macro PR: 211376 Submitted by: Duane <parakleta@darkreality.org> Changes: _U stable/11/ stable/11/lib/libc/gen/isgreater.3