diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-01-13 13:43:37 +0000 |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-01-13 13:43:37 +0000 |
commit | a913a20c913be25bfda242850debb6b6a7c2fc90 (patch) | |
tree | 5c02ee059a364f645320d9198f1b90f99eae1f60 /Objects/stringlib/fastsearch.h | |
parent | 1379b8404a8013932299f02d0a2e081200386a49 (diff) | |
download | cpython-git-a913a20c913be25bfda242850debb6b6a7c2fc90.tar.gz |
Test commit to try to diagnose failures of the IA-64 buildbot
Diffstat (limited to 'Objects/stringlib/fastsearch.h')
-rw-r--r-- | Objects/stringlib/fastsearch.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/stringlib/fastsearch.h b/Objects/stringlib/fastsearch.h index 21cf3a2ab7..76b92cee70 100644 --- a/Objects/stringlib/fastsearch.h +++ b/Objects/stringlib/fastsearch.h @@ -18,8 +18,8 @@ #define FAST_SEARCH 1 #define FAST_RSEARCH 2 -#define BLOOM_ADD(mask, ch) ((mask |= (1 << ((ch) & (LONG_BIT - 1))))) -#define BLOOM(mask, ch) ((mask & (1 << ((ch) & (LONG_BIT - 1))))) +#define BLOOM_ADD(mask, ch) ((mask |= (1 << ((ch) & 0x1F)))) +#define BLOOM(mask, ch) ((mask & (1 << ((ch) & 0x1F)))) Py_LOCAL_INLINE(Py_ssize_t) fastsearch(const STRINGLIB_CHAR* s, Py_ssize_t n, |