summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-04-11 19:14:07 (GMT)
committerGuido van Rossum <guido@python.org>1997-04-11 19:14:07 (GMT)
commit3648884490953f52e749f1725b5e1d486d4cbcc6 (patch)
tree628f5f3bfa9c6517d586643a6fc12065c32089b3 /Objects
parentfd16d9438d1f2a8fbb6339fa04b55e0235103d09 (diff)
downloadcpython-3648884490953f52e749f1725b5e1d486d4cbcc6.zip
cpython-3648884490953f52e749f1725b5e1d486d4cbcc6.tar.gz
cpython-3648884490953f52e749f1725b5e1d486d4cbcc6.tar.bz2
(Jack:) Align mapping entries to 4-words if USE_CACHE_ALIGNED is defined.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/dictobject.c3
-rw-r--r--Objects/mappingobject.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/Objects/dictobject.c b/Objects/dictobject.c
index cd915e9..39c2fc9 100644
--- a/Objects/dictobject.c
+++ b/Objects/dictobject.c
@@ -97,6 +97,9 @@ typedef struct {
long me_hash;
object *me_key;
object *me_value;
+#ifdef USE_CACHE_ALIGNED
+ long aligner;
+#endif
} mappingentry;
/*
diff --git a/Objects/mappingobject.c b/Objects/mappingobject.c
index cd915e9..39c2fc9 100644
--- a/Objects/mappingobject.c
+++ b/Objects/mappingobject.c
@@ -97,6 +97,9 @@ typedef struct {
long me_hash;
object *me_key;
object *me_value;
+#ifdef USE_CACHE_ALIGNED
+ long aligner;
+#endif
} mappingentry;
/*