Check for Nan

This commit is contained in:
ceriel
1991-03-19 16:39:40 +00:00
parent 369c45fa11
commit 5b9fe61434
14 changed files with 75 additions and 7 deletions

View File

@@ -8,6 +8,7 @@
#include <float.h>
#include <math.h>
#include <errno.h>
#include "localmath.h"
double
@@ -42,6 +43,10 @@ atan(double x)
int n;
double g;
if (__IsNan(x)) {
errno = EDOM;
return x;
}
if (neg) {
x = -x;
}