summaryrefslogtreecommitdiff
path: root/numpy/core/src
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/core/src')
-rw-r--r--numpy/core/src/multiarraymodule.c3
-rw-r--r--numpy/core/src/numpyos.c42
2 files changed, 0 insertions, 45 deletions
diff --git a/numpy/core/src/multiarraymodule.c b/numpy/core/src/multiarraymodule.c
index a9cd86cc8..7b483ba8f 100644
--- a/numpy/core/src/multiarraymodule.c
+++ b/numpy/core/src/multiarraymodule.c
@@ -8474,9 +8474,6 @@ PyMODINIT_FUNC initmultiarray(void) {
PyObject *m, *d, *s;
PyObject *c_api;
- /* Initialize constants etc. */
- //NumPyOS_init();
-
/* Create the module and add the functions */
m = Py_InitModule("multiarray", array_module_methods);
if (!m) {
diff --git a/numpy/core/src/numpyos.c b/numpy/core/src/numpyos.c
index f5337a861..319b4806d 100644
--- a/numpy/core/src/numpyos.c
+++ b/numpy/core/src/numpyos.c
@@ -321,48 +321,6 @@ _ASCII_FORMAT(long double, l, long double)
_ASCII_FORMAT(long double, l, double)
#endif
-#if 0
-static double NPY_INFINITY; /* Positive infinity */
-static double NPY_PZERO; /* +0 */
-static double NPY_NAN; /* NaN */
-
-/* NumPyOS_init:
- *
- * initialize floating-point constants
- */
-static void
-NumPyOS_init(void) {
- double mul = 1e100;
- double div = 1e10;
- double tmp, c;
-
- tmp = 0;
- c = mul;
- for (;;) {
- c *= mul;
- if (c == tmp) {
- break;
- }
- tmp = c;
- }
- NPY_INFINITY = c;
-
- tmp = 0;
- c = div;
- for (;;) {
- c /= div;
- if (c == tmp) {
- break;
- }
- tmp = c;
- }
-
- NPY_PZERO = c;
- NPY_NAN = NPY_INFINITY / NPY_INFINITY;
-}
-#endif
-
-
/*
* NumPyOS_ascii_isspace:
*