1 .\" Copyright (c) 2003 Mike Barcroft <mike@FreeBSD.org>
2 .\" All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 .\" $FreeBSD: head/lib/libc/gen/fpclassify.3 140890 2005-01-27 05:46:17Z das $
31 .Nm fpclassify , isfinite , isinf , isnan , isnormal
32 .Nd "classify a floating-point number"
38 .Fn fpclassify "real-floating x"
40 .Fn isfinite "real-floating x"
42 .Fn isinf "real-floating x"
44 .Fn isnan "real-floating x"
46 .Fn isnormal "real-floating x"
50 macro takes an argument of
52 and returns one of the following manifest constants.
53 .Bl -tag -width ".Dv FP_SUBNORMAL"
57 is an infinite number.
61 is not a number (NaN).
65 is a normalized number.
69 is a denormalized number.
78 macro returns a non-zero value if and only if its argument has
79 a finite (zero, subnormal, or normal) value.
85 macros return non-zero if and only if
88 or a non-zero normalized number, respectively.
92 is provided as an alias to
94 for compatibility, and its use is deprecated.
99 are deprecated versions of
130 functions, which accepted
132 arguments; these have been superseded by the macros