diff options
| author | Michael Droettboom <mdboom@gmail.com> | 2023-11-03 15:21:16 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-03 15:21:16 (GMT) |
| commit | 2bc01cc0c72a3d91bdcce09886efa987a90396d9 (patch) | |
| tree | b786aa53e9ce8e838582ec5ccb8c99438a4d9bfd /Include/internal | |
| parent | 5add7a6724cbff6c9f0597f0257b64c4f0978c14 (diff) | |
| download | cpython-2bc01cc0c72a3d91bdcce09886efa987a90396d9.zip cpython-2bc01cc0c72a3d91bdcce09886efa987a90396d9.tar.gz cpython-2bc01cc0c72a3d91bdcce09886efa987a90396d9.tar.bz2 | |
gh-111652: Fix --enable-pystats build (GH-111653)
Diffstat (limited to 'Include/internal')
| -rw-r--r-- | Include/internal/pycore_code.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Include/internal/pycore_code.h b/Include/internal/pycore_code.h index 4f126ab..eaf84a9 100644 --- a/Include/internal/pycore_code.h +++ b/Include/internal/pycore_code.h @@ -271,6 +271,8 @@ extern int _PyStaticCode_Init(PyCodeObject *co); #ifdef Py_STATS +#include "pycore_bitutils.h" // _Py_bit_length + #define STAT_INC(opname, name) do { if (_Py_stats) _Py_stats->opcode_stats[opname].specialization.name++; } while (0) #define STAT_DEC(opname, name) do { if (_Py_stats) _Py_stats->opcode_stats[opname].specialization.name--; } while (0) #define OPCODE_EXE_INC(opname) do { if (_Py_stats) _Py_stats->opcode_stats[opname].execution_count++; } while (0) |
