1 /* Minimal main program -- everything is loaded from the library */
6 #include <floatingpoint.h>
10 main(int argc
, char **argv
)
12 /* 754 requires that FP exceptions run in "no stop" mode by default,
13 * and until C vendors implement C99's ways to control FP exceptions,
14 * Python requires non-stop mode. Alas, some platforms enable FP
15 * exceptions by default. Here we disable them.
21 fpsetmask(m
& ~FP_X_OFL
);
23 return Py_Main(argc
, argv
);