/home/mdboom/Work/builds/cpython/Include/internal/pycore_abstract.h
Line | Count | Source |
1 | #ifndef Py_INTERNAL_ABSTRACT_H |
2 | #define Py_INTERNAL_ABSTRACT_H |
3 | #ifdef __cplusplus |
4 | extern "C" { |
5 | #endif |
6 | |
7 | #ifndef Py_BUILD_CORE |
8 | # error "this header requires Py_BUILD_CORE define" |
9 | #endif |
10 | |
11 | // Fast inlined version of PyIndex_Check() |
12 | static inline int |
13 | _PyIndex_Check(PyObject *obj) |
14 | { |
15 | PyNumberMethods *tp_as_number = Py_TYPE(obj)->tp_as_number; |
16 | return (tp_as_number != NULL && tp_as_number->nb_index != NULL56.1M ); Branch (16:13): [True: 3.18M, False: 74.6k]
Branch (16:37): [True: 1.75M, False: 1.42M]
Branch (16:13): [True: 15.5k, False: 0]
Branch (16:37): [True: 15.5k, False: 0]
Branch (16:13): [True: 1.46M, False: 137k]
Branch (16:37): [True: 1.38M, False: 84.6k]
Branch (16:13): [True: 3.01M, False: 2.47M]
Branch (16:37): [True: 2.90M, False: 115k]
Branch (16:13): [True: 30, False: 1]
Branch (16:37): [True: 26, False: 4]
Branch (16:13): [True: 6.58M, False: 1.24M]
Branch (16:37): [True: 6.58M, False: 34]
Branch (16:13): [True: 14.9k, False: 36.4k]
Branch (16:37): [True: 14.9k, False: 46]
Branch (16:13): [True: 269k, False: 43.4k]
Branch (16:37): [True: 269k, False: 2]
Branch (16:13): [True: 123k, False: 0]
Branch (16:37): [True: 123k, False: 3]
Branch (16:13): [True: 1.24M, False: 935k]
Branch (16:37): [True: 1.24M, False: 2]
Branch (16:13): [True: 11.5M, False: 4.95M]
Branch (16:37): [True: 11.5M, False: 10]
Branch (16:13): [True: 16.7M, False: 0]
Branch (16:37): [True: 16.7M, False: 1]
Branch (16:13): [True: 11.8M, False: 1]
Branch (16:37): [True: 11.8M, False: 22]
|
17 | } abstract.c:_PyIndex_Check Line | Count | Source | 14 | { | 15 | PyNumberMethods *tp_as_number = Py_TYPE(obj)->tp_as_number; | 16 | return (tp_as_number != NULL && tp_as_number->nb_index != NULL3.18M ); Branch (16:13): [True: 3.18M, False: 74.6k]
Branch (16:37): [True: 1.75M, False: 1.42M]
| 17 | } |
bytes_methods.c:_PyIndex_Check Line | Count | Source | 14 | { | 15 | PyNumberMethods *tp_as_number = Py_TYPE(obj)->tp_as_number; | 16 | return (tp_as_number != NULL && tp_as_number->nb_index != NULL); Branch (16:13): [True: 15.5k, False: 0]
Branch (16:37): [True: 15.5k, False: 0]
| 17 | } |
bytearrayobject.c:_PyIndex_Check Line | Count | Source | 14 | { | 15 | PyNumberMethods *tp_as_number = Py_TYPE(obj)->tp_as_number; | 16 | return (tp_as_number != NULL && tp_as_number->nb_index != NULL1.46M ); Branch (16:13): [True: 1.46M, False: 137k]
Branch (16:37): [True: 1.38M, False: 84.6k]
| 17 | } |
bytesobject.c:_PyIndex_Check Line | Count | Source | 14 | { | 15 | PyNumberMethods *tp_as_number = Py_TYPE(obj)->tp_as_number; | 16 | return (tp_as_number != NULL && tp_as_number->nb_index != NULL3.01M ); Branch (16:13): [True: 3.01M, False: 2.47M]
Branch (16:37): [True: 2.90M, False: 115k]
| 17 | } |
interpreteridobject.c:_PyIndex_Check Line | Count | Source | 14 | { | 15 | PyNumberMethods *tp_as_number = Py_TYPE(obj)->tp_as_number; | 16 | return (tp_as_number != NULL && tp_as_number->nb_index != NULL30 ); Branch (16:13): [True: 30, False: 1]
Branch (16:37): [True: 26, False: 4]
| 17 | } |
listobject.c:_PyIndex_Check Line | Count | Source | 14 | { | 15 | PyNumberMethods *tp_as_number = Py_TYPE(obj)->tp_as_number; | 16 | return (tp_as_number != NULL && tp_as_number->nb_index != NULL6.58M ); Branch (16:13): [True: 6.58M, False: 1.24M]
Branch (16:37): [True: 6.58M, False: 34]
| 17 | } |
memoryobject.c:_PyIndex_Check Line | Count | Source | 14 | { | 15 | PyNumberMethods *tp_as_number = Py_TYPE(obj)->tp_as_number; | 16 | return (tp_as_number != NULL && tp_as_number->nb_index != NULL14.9k ); Branch (16:13): [True: 14.9k, False: 36.4k]
Branch (16:37): [True: 14.9k, False: 46]
| 17 | } |
rangeobject.c:_PyIndex_Check Line | Count | Source | 14 | { | 15 | PyNumberMethods *tp_as_number = Py_TYPE(obj)->tp_as_number; | 16 | return (tp_as_number != NULL && tp_as_number->nb_index != NULL269k ); Branch (16:13): [True: 269k, False: 43.4k]
Branch (16:37): [True: 269k, False: 2]
| 17 | } |
sliceobject.c:_PyIndex_Check Line | Count | Source | 14 | { | 15 | PyNumberMethods *tp_as_number = Py_TYPE(obj)->tp_as_number; | 16 | return (tp_as_number != NULL && tp_as_number->nb_index != NULL); Branch (16:13): [True: 123k, False: 0]
Branch (16:37): [True: 123k, False: 3]
| 17 | } |
tupleobject.c:_PyIndex_Check Line | Count | Source | 14 | { | 15 | PyNumberMethods *tp_as_number = Py_TYPE(obj)->tp_as_number; | 16 | return (tp_as_number != NULL && tp_as_number->nb_index != NULL1.24M ); Branch (16:13): [True: 1.24M, False: 935k]
Branch (16:37): [True: 1.24M, False: 2]
| 17 | } |
unicodeobject.c:_PyIndex_Check Line | Count | Source | 14 | { | 15 | PyNumberMethods *tp_as_number = Py_TYPE(obj)->tp_as_number; | 16 | return (tp_as_number != NULL && tp_as_number->nb_index != NULL11.5M ); Branch (16:13): [True: 11.5M, False: 4.95M]
Branch (16:37): [True: 11.5M, False: 10]
| 17 | } |
Line | Count | Source | 14 | { | 15 | PyNumberMethods *tp_as_number = Py_TYPE(obj)->tp_as_number; | 16 | return (tp_as_number != NULL && tp_as_number->nb_index != NULL); Branch (16:13): [True: 16.7M, False: 0]
Branch (16:37): [True: 16.7M, False: 1]
| 17 | } |
modsupport.c:_PyIndex_Check Line | Count | Source | 14 | { | 15 | PyNumberMethods *tp_as_number = Py_TYPE(obj)->tp_as_number; | 16 | return (tp_as_number != NULL && tp_as_number->nb_index != NULL11.8M ); Branch (16:13): [True: 11.8M, False: 1]
Branch (16:37): [True: 11.8M, False: 22]
| 17 | } |
|
18 | |
19 | PyObject *_PyNumber_PowerNoMod(PyObject *lhs, PyObject *rhs); |
20 | PyObject *_PyNumber_InPlacePowerNoMod(PyObject *lhs, PyObject *rhs); |
21 | |
22 | #ifdef __cplusplus |
23 | } |
24 | #endif |
25 | #endif /* !Py_INTERNAL_ABSTRACT_H */ |