Staging
v0.5.1
https://github.com/python/cpython
Revision cb356c2ecc0528d47fee2b9f4b32da4fcfb48b3a authored by Benjamin Peterson on 12 September 2017, 06:08:49 UTC, committed by GitHub on 12 September 2017, 06:08:49 UTC
This undoes a853a8ba7850381d49b284295dd6f0dc491dbe44 except for the pytime.c
parts. We want to continue to allow IEEE 754 doubles larger than FLT_MAX to be
rounded into finite floats. Tests were added to very this behavior.
(cherry picked from commit 2bb69a5b4e7f96cb35d1b28aa7b7b3974b351f59)
1 parent 99b941b
Raw File
Tip revision: cb356c2ecc0528d47fee2b9f4b32da4fcfb48b3a authored by Benjamin Peterson on 12 September 2017, 06:08:49 UTC
[3.6] bpo-31373: remove overly strict float range checks (GH-3486) (#3495)
Tip revision: cb356c2
pyfpe.c
#include "pyconfig.h"
#include "pyfpe.h"
/*
 * The signal handler for SIGFPE is actually declared in an external
 * module fpectl, or as preferred by the user.  These variable
 * definitions are required in order to compile Python without
 * getting missing externals, but to actually handle SIGFPE requires
 * defining a handler and enabling generation of SIGFPE.
 */

#ifdef WANT_SIGFPE_HANDLER
jmp_buf PyFPE_jbuf;
int PyFPE_counter = 0;
#endif

/* Have this outside the above #ifdef, since some picky ANSI compilers issue a
   warning when compiling an empty file. */

double
PyFPE_dummy(void *dummy)
{
	return 1.0;
}
back to top