| 1367 | /* ListAppend.proto */ |
| 1368 | #if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS |
| 1369 | static CYTHON_INLINE int __Pyx_PyList_Append(PyObject* list, PyObject* x) { |
| 1370 | PyListObject* L = (PyListObject*) list; |
| 1371 | Py_ssize_t len = Py_SIZE(list); |
| 1372 | if (likely(L->allocated > len) & likely(len > (L->allocated >> 1))) { |
| 1373 | Py_INCREF(x); |
| 1374 | PyList_SET_ITEM(list, len, x); |
| 1375 | __Pyx_SET_SIZE(list, len + 1); |
| 1376 | return 0; |
| 1377 | } |
| 1378 | return PyList_Append(list, x); |
| 1379 | } |
| 1380 | #else |
| 1381 | #define __Pyx_PyList_Append(L,x) PyList_Append(L,x) |
| 1382 | #endif |
no outgoing calls
no test coverage detected