commit | 5fe605889a52bc2a34e1d883df14e6cc56ee87a3 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Thu Mar 09 12:12:50 1995 +0000 |
committer | Guido van Rossum <guido@python.org> | Thu Mar 09 12:12:50 1995 +0000 |
tree | 338857070fb7a49a861c7dbb33fd47200ba35324 | |
parent | 8d617a60b1d183af24278be8dc1597ee19fe7931 [diff] [blame] |
a few peephole optimizations
diff --git a/Objects/stringobject.c b/Objects/stringobject.c index cb76d77..b09fc25 100644 --- a/Objects/stringobject.c +++ b/Objects/stringobject.c
@@ -419,7 +419,7 @@ p = (unsigned char *) a->ob_sval; x = *p << 7; while (--len >= 0) - x = (x + x + x) ^ *p++; + x = (3*x) ^ *p++; x ^= a->ob_size; if (x == -1) x = -2;