beyond approximation limit.
* mingwex/math/sf_erf.c (erff): Likewise.
+2003-10-21 Danny Smith <dannysmith@users.sourceforge.net>
+
+ * mingwex/math/s_erf.c (erf): Set errno to ERANGE if
+ beyond approximation limit.
+ * mingwex/math/sf_erf.c (erff): Likewise.
+
2003-10-17 Danny Smith <dannysmith@users.sourceforge.net>
* include/stdio.h (getc): Cast result to unsigned char before
#include <math.h>
#include <stdint.h>
+#include <errno.h>
#define __ieee754_exp exp
__ieee754_exp((z-x)*(z+x)+R/S);
if(hx>0) return r/x; else return two-r/x;
} else {
+ /* set range error */
+ errno = ERANGE;
if(hx>0) return tiny*tiny; else return two-tiny;
}
}
/*
#include "fdlibm.h"
*/
+#include <math.h>
#include <stdint.h>
+#include <errno.h>
+
#define __ieee754_expf expf
-#include <math.h>
+
typedef union
{
__ieee754_expf((z-x)*(z+x)+R/S);
if(hx>0) return r/x; else return two-r/x;
} else {
+ /* set range error */
+ errno = ERANGE;
if(hx>0) return tiny*tiny; else return two-tiny;
}
}