Bug 211376

Summary: isunordered description in isgreater(3) man page is inverted
Product: Documentation Reporter: Duane <parakleta>
Component: Books & ArticlesAssignee: Eitan Adler <eadler>
Status: Closed FIXED    
Severity: Affects Some People    
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Duane 2016-07-26 04:43:20 UTC
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.
Comment 1 commit-hook freebsd_committer freebsd_triage 2017-12-31 00:47:29 UTC
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
Comment 2 commit-hook freebsd_committer freebsd_triage 2018-01-07 00:38:53 UTC
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