[Python-checkins] gh-46845: clean up unused DK_IXSIZE (GH-96405)
methane
webhook-mailer at python.org
Tue Aug 30 03:03:46 EDT 2022
https://github.com/python/cpython/commit/d21d2f0793ce32d72759d5cfc11622d13e3e6b81
commit: d21d2f0793ce32d72759d5cfc11622d13e3e6b81
branch: main
author: Matthias Görgens <matthias.goergens at gmail.com>
committer: methane <songofacandy at gmail.com>
date: 2022-08-30T16:03:30+09:00
summary:
gh-46845: clean up unused DK_IXSIZE (GH-96405)
files:
M Include/internal/pycore_dict.h
diff --git a/Include/internal/pycore_dict.h b/Include/internal/pycore_dict.h
index 5370106d529f..464092996cae 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), \
More information about the Python-checkins
mailing list