Branch: Tag:

2001-05-28

2001-05-28 18:15:07 by Marcus Comstedt <marcus@mc.pp.se>

Added two methods for generating NaN, infnan() (BSD 4.3) and nan() (C99).

Rev: src/acconfig.h:1.86
Rev: src/configure.in:1.521
Rev: src/opcodes.c:1.108

1: - AC_REVISION("$Id: configure.in,v 1.520 2001/05/27 16:58:58 grubba Exp $") + AC_REVISION("$Id: configure.in,v 1.521 2001/05/28 18:15:06 marcus Exp $")   AC_INIT(interpret.c)   AC_CONFIG_HEADER(machine.h)   
2523:    iszero \    finite \    signbit \ +  nan \    nice \    __priocntl \    sched_setscheduler \
2669:         ############################################################################# + MY_CHECK_FUNCTION(infnan, + [ + #include <errno.h> + #include <math.h> + ], [ +  double pinf = infnan(ERANGE); +  double ninf = infnan(-ERANGE); +  double nan = infnan(EDOM); +  exit(!(isinf(pinf)>0 && isinf(ninf)<0 && isnan(nan))); + ]) + #############################################################################      # FreeBSD 3.0 has broken F_SETFD when running with threads.