Permalink
Browse files

inline isfinite test

  • Loading branch information...
1 parent 77de6f9 commit 1378426f0502edfbf3c3e8d461456b1f21fc15e1 @charliesome committed Jun 1, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 libc/inc/math.h
View
@@ -5,9 +5,7 @@
#define INFINITY (1.0/0.0)
#define M_PI (3.14159265358979323846)
-int __inline_isfinite_double(double x);
-
-#define isfinite(x) __inline_isfinite_double(x)
+#define isfinite(x) ((x) == (x) && (x) != INFINITY && (x) != -INFINITY)
double floor(double x);
double fmod(double x, double y);

0 comments on commit 1378426

Please sign in to comment.