summaryrefslogtreecommitdiff
path: root/src/floatfns.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@Penguin.CS.UCLA.EDU>2018-07-31 23:46:57 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2018-07-31 23:48:56 -0700
commite28a37438d4ba71cd8a053e956686ab29ff97b6a (patch)
tree77c7f4cb879dd8da7925531209222e96834dd711 /src/floatfns.c
parent1804fece02691798394c9e9bd519cd4a53776018 (diff)
downloademacs-e28a37438d4ba71cd8a053e956686ab29ff97b6a.tar.gz
Simplify by assuming C99 math.h isnan etc.
These should be portable nowadays. * src/data.c (isnan): Remove. * src/floatfns.c (isfinite, isnan): Remove. * src/print.c: Include math.h, for isinf and isnan. (float_to_string): Simplify by using them.
Diffstat (limited to 'src/floatfns.c')
-rw-r--r--src/floatfns.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/floatfns.c b/src/floatfns.c
index e7d404a84e0..45e786f9669 100644
--- a/src/floatfns.c
+++ b/src/floatfns.c
@@ -47,13 +47,6 @@ along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>. */
#include <count-leading-zeros.h>
-#ifndef isfinite
-# define isfinite(x) ((x) - (x) == 0)
-#endif
-#ifndef isnan
-# define isnan(x) ((x) != (x))
-#endif
-
/* Check that X is a floating point number. */
static void