1 /*************************************************************************
5 * Copyright (C) 2001 Bjorn Reese <breese@users.sourceforge.net>
7 * Permission to use, copy, modify, and distribute this software for any
8 * purpose with or without fee is hereby granted, provided that the above
9 * copyright notice and this permission notice appear in all copies.
11 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
12 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
13 * MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE AUTHORS AND
14 * CONTRIBUTORS ACCEPT NO RESPONSIBILITY IN ANY CONCEIVABLE MANNER.
16 ************************************************************************/
36 * Return NaN (Not-a-Number).
38 TRIO_PUBLIC
double trio_nan
TRIO_PROTO((void));
41 * Return positive infinity.
43 TRIO_PUBLIC
double trio_pinf
TRIO_PROTO((void));
46 * Return negative infinity.
48 TRIO_PUBLIC
double trio_ninf
TRIO_PROTO((void));
51 * Return negative zero.
53 TRIO_PUBLIC
double trio_nzero
TRIO_PROTO((TRIO_NOARGS
));
56 * If number is a NaN return non-zero, otherwise return zero.
58 TRIO_PUBLIC
int trio_isnan
TRIO_PROTO((double number
));
61 * If number is positive infinity return 1, if number is negative
62 * infinity return -1, otherwise return 0.
64 TRIO_PUBLIC
int trio_isinf
TRIO_PROTO((double number
));
67 * If number is finite return non-zero, otherwise return zero.
70 /* Temporary fix - these 2 routines not used in libxml */
71 TRIO_PUBLIC
int trio_isfinite
TRIO_PROTO((double number
));
73 TRIO_PUBLIC
int trio_fpclassify
TRIO_PROTO((double number
));
76 TRIO_PUBLIC
int trio_signbit
TRIO_PROTO((double number
));
78 TRIO_PUBLIC
int trio_fpclassify_and_signbit
TRIO_PROTO((double number
, int *is_negative
));
84 #endif /* TRIO_NAN_H */