Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
On FreeBSD, Python no longer calls ``fedisableexcept()`` at startup to
control the floating point control mode. The call became useless since
FreeBSD 6: it became the default mode.
13 changes: 0 additions & 13 deletions 13 Modules/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
#include "pycore_pymem.h"
#include "pycore_pystate.h"

#ifdef __FreeBSD__
# include <fenv.h> /* fedisableexcept() */
#endif

/* Includes for exit_sigint() */
#include <stdio.h> /* perror() */
#ifdef HAVE_SIGNAL_H
Expand Down Expand Up @@ -43,15 +39,6 @@ pymain_init(const _PyArgv *args)
return status;
}

/* 754 requires that FP exceptions run in "no stop" mode by default,
* and until C vendors implement C99's ways to control FP exceptions,
* Python requires non-stop mode. Alas, some platforms enable FP
* exceptions by default. Here we disable them.
*/
#ifdef __FreeBSD__
fedisableexcept(FE_OVERFLOW);
#endif

PyPreConfig preconfig;
PyPreConfig_InitPythonConfig(&preconfig);

Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.