MCPcopy Create free account
hub / github.com/numpy/numpy / cache_hash

Method cache_hash

numpy/distutils/ccompiler_opt.py:885–893  ·  view source on GitHub ↗
(self, *factors)

Source from the content-addressed store, hash-verified

883 f.write(repr_dict)
884
885 def cache_hash(self, *factors):
886 # is there a built-in non-crypto hash?
887 # sdbm
888 chash = 0
889 for f in factors:
890 for char in str(f):
891 chash = ord(char) + (chash << 6) + (chash << 16) - chash
892 chash &= 0xFFFFFFFF
893 return chash
894
895 @staticmethod
896 def me(cb):

Callers 2

__init__Method · 0.95
_generate_configMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected