backport
[AROS.git] / compiler / clib / isinf.c
blob0df5358225a9cb84d07c9cf81b09399845cca114
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Check if a double is infinite.
6 Lang: english
7 */
9 /*
10 * Written by J.T. Conklin <jtc@netbsd.org>.
11 * Public domain.
15 * isinf(x) returns 1 is x is inf, else 0;
16 * no branching!
19 #ifndef AROS_NOFPU
21 #include "__math.h"
22 #include <math.h>
24 #ifdef isinf
25 # undef isinf
26 #endif
27 int __isinf(double);
29 int isinf(double val)
31 return __isinf(val);
32 } /* isinf */
34 #else
36 int isinf(void)
38 return 0;
41 #endif /* AROS_NOFPU */