blob: 2113c6298bdee31bb02e59da05c42df5e1fdf22c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
/*
* Copyright (C) 2000 Manuel Novoa III
*
* This is a utility routine for strtod errno support.
* As the name implies, it checks if a double is either 0 or +/-infinity.
* Doing this inline doesn't work on i386 because of excess precission
* stored in the FPU.
*
* TODO: Check bitmasks directly?
*/
int _zero_or_inf_check(double x)
{
return ( x == x/4 );
}
|