diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2016-02-15 17:11:59 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2016-02-18 21:31:05 -0700 |
commit | fbeae17e5db78d5c7607bc21f16f6dcdb635c18e (patch) | |
tree | abeac3daf5aa116f24f7a664bb908f4cf1cca026 | |
parent | 8556c5dcf623efa57d037b0b9685a81a896010d5 (diff) | |
download | numpy-fbeae17e5db78d5c7607bc21f16f6dcdb635c18e.tar.gz |
MAINT: Remove floor function code no longer needed in scalarmath.
The floor function is no longer needed in scalarmath as its use has been
replaced by the new pymodf function.
-rw-r--r-- | numpy/core/src/umath/scalarmath.c.src | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/numpy/core/src/umath/scalarmath.c.src b/numpy/core/src/umath/scalarmath.c.src index 0f762d707..77520abf5 100644 --- a/numpy/core/src/umath/scalarmath.c.src +++ b/numpy/core/src/umath/scalarmath.c.src @@ -271,7 +271,6 @@ static void * #type = npy_float, npy_double, npy_longdouble# * #c = f, , l# */ -static @type@ (*_basic_@name@_floor)(@type@); static @type@ (*_basic_@name@_sqrt)(@type@); static @type@ (*_basic_@name@_fmod)(@type@, @type@); @@ -304,7 +303,6 @@ static void /**end repeat**/ -static npy_half (*_basic_half_floor)(npy_half); static npy_half (*_basic_half_sqrt)(npy_half); static npy_half (*_basic_half_fmod)(npy_half, npy_half); @@ -1691,25 +1689,6 @@ get_functions(PyObject * mm) _basic_clongdouble_pow = funcdata[j + 5]; Py_DECREF(obj); - /* Get the floor functions */ - obj = PyObject_GetAttrString(mm, "floor"); - if (obj == NULL) { - goto fail; - } - funcdata = ((PyUFuncObject *)obj)->data; - signatures = ((PyUFuncObject *)obj)->types; - i = 0; - j = 0; - while(signatures[i] != NPY_FLOAT) { - i += 2; - j++; - } - _basic_half_floor = funcdata[j - 1]; - _basic_float_floor = funcdata[j]; - _basic_double_floor = funcdata[j + 1]; - _basic_longdouble_floor = funcdata[j + 2]; - Py_DECREF(obj); - /* Get the sqrt functions */ obj = PyObject_GetAttrString(mm, "sqrt"); if (obj == NULL) { |