mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Revert "gh-133395: add option for extension modules to specialize BINARY_OP/SUBSCR, apply to arrays (#133396)" (#133498)
This commit is contained in:
parent
3c73cf51df
commit
296cd128bf
14 changed files with 44 additions and 171 deletions
|
|
@ -480,18 +480,13 @@ adaptive_counter_backoff(_Py_BackoffCounter counter) {
|
|||
/* Specialization Extensions */
|
||||
|
||||
/* callbacks for an external specialization */
|
||||
|
||||
struct _PyBinopSpecializationDescr;
|
||||
|
||||
typedef int (*binaryopguardfunc)(PyObject *lhs, PyObject *rhs);
|
||||
typedef PyObject* (*binaryopactionfunc)(PyObject *lhs, PyObject *rhs);
|
||||
typedef void (*binaryopfreefunc)(struct _PyBinopSpecializationDescr *descr);
|
||||
typedef PyObject *(*binaryopactionfunc)(PyObject *lhs, PyObject *rhs);
|
||||
|
||||
typedef struct _PyBinopSpecializationDescr {
|
||||
typedef struct {
|
||||
int oparg;
|
||||
binaryopguardfunc guard;
|
||||
binaryopactionfunc action;
|
||||
binaryopfreefunc free;
|
||||
} _PyBinaryOpSpecializationDescr;
|
||||
|
||||
/* Comparison bit masks. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue