MCPcopy Create free account
hub / github.com/OpenDriveLab/OpenLane / __Pyx_PyList_Append

Function __Pyx_PyList_Append

eval/CIPO_evaluation/pycocotools/_mask.c:1369–1379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1367/* ListAppend.proto */
1368#if CYTHON_USE_PYLIST_INTERNALS && CYTHON_ASSUME_SAFE_MACROS
1369static 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

Callers 2

_mask.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected