X-Git-Url: https://git.alrj.org/?p=bold.git;a=blobdiff_plain;f=Bold%2Flinker.py;h=8549066805cd43843416c529edba77cb3bad5a60;hp=8bc170a293c2f0b944ae3527232094399b13242c;hb=cfa01bd9bb99e5e7ded6db402951c081bdd21aa5;hpb=1fb0bfaaa17d5fd6b302091ca3a4b7350dae91e2 diff --git a/Bold/linker.py b/Bold/linker.py index 8bc170a..8549066 100644 --- a/Bold/linker.py +++ b/Bold/linker.py @@ -26,7 +26,7 @@ def hash_name(name): """Caculate the hash of the function name.""" h = 0 for c in name: - h = (ord(c) - h + (h << 6) + (h << 16) & 0xffffffff) + h = ((h * 0x21) ^ ord(c)) & 0xffffffff return h class BoldLinker(object):