summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-08-30 07:28:51 (GMT)
committerGitHub <noreply@github.com>2022-08-30 07:28:51 (GMT)
commit1901ee7a5251a3a2a2d9f65f25205b0b918d5c97 (patch)
tree837e28de2a0974f76ff86da7abfafd155178e59f
parent4cfb6395e18b4846e92c9f685d534e6ec17822a2 (diff)
downloadcpython-1901ee7a5251a3a2a2d9f65f25205b0b918d5c97.zip
cpython-1901ee7a5251a3a2a2d9f65f25205b0b918d5c97.tar.gz
cpython-1901ee7a5251a3a2a2d9f65f25205b0b918d5c97.tar.bz2
gh-46845: clean up unused DK_IXSIZE (GH-96405)
(cherry picked from commit d21d2f0793ce32d72759d5cfc11622d13e3e6b81) Co-authored-by: Matthias Görgens <matthias.goergens@gmail.com>
-rw-r--r--Include/internal/pycore_dict.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/Include/internal/pycore_dict.h b/Include/internal/pycore_dict.h
index 24d2a71..dc308fe 100644
--- a/Include/internal/pycore_dict.h
+++ b/Include/internal/pycore_dict.h
@@ -141,17 +141,8 @@ struct _dictvalues {
#define DK_LOG_SIZE(dk) ((dk)->dk_log2_size)
#if SIZEOF_VOID_P > 4
#define DK_SIZE(dk) (((int64_t)1)<<DK_LOG_SIZE(dk))
-#define DK_IXSIZE(dk) \
- (DK_LOG_SIZE(dk) <= 7 ? \
- 1 : DK_LOG_SIZE(dk) <= 15 ? \
- 2 : DK_LOG_SIZE(dk) <= 31 ? \
- 4 : sizeof(int64_t))
#else
#define DK_SIZE(dk) (1<<DK_LOG_SIZE(dk))
-#define DK_IXSIZE(dk) \
- (DK_LOG_SIZE(dk) <= 7 ? \
- 1 : DK_LOG_SIZE(dk) <= 15 ? \
- 2 : sizeof(int32_t))
#endif
#define DK_ENTRIES(dk) \
(assert(dk->dk_kind == DICT_KEYS_GENERAL), (PyDictKeyEntry*)(&((int8_t*)((dk)->dk_indices))[(size_t)1 << (dk)->dk_log2_index_bytes]))