* Implement vectorcallfunc which should be defined with Python 3.8+. * In principle this could be backported, but the speed gain seems moderate * since ufunc calls often do not have keyword arguments and always have * a large overhead. The only user would potentially be cython probably. */
| 5054 | * a large overhead. The only user would potentially be cython probably. |
| 5055 | */ |
| 5056 | static PyObject * |
| 5057 | ufunc_generic_vectorcall(PyObject *ufunc, |
| 5058 | PyObject *const *args, size_t len_args, PyObject *kwnames) |
| 5059 | { |
| 5060 | /* |
| 5061 | * Unlike METH_FASTCALL, `len_args` may have a flag to signal that |
| 5062 | * args[-1] may be (temporarily) used. So normalize it here. |
| 5063 | */ |
| 5064 | return ufunc_generic_fastcall((PyUFuncObject *)ufunc, |
| 5065 | args, PyVectorcall_NARGS(len_args), kwnames, NPY_FALSE); |
| 5066 | } |
| 5067 | |
| 5068 | |
| 5069 | NPY_NO_EXPORT PyObject * |
nothing calls this directly
no test coverage detected