MCPcopy Create free account
hub / github.com/subbarayudu-j/TheAlgorithms-Python / not32

Function not32

hashes/md5.py:77–82  ·  view source on GitHub ↗
(i)

Source from the content-addressed store, hash-verified

75 currPos += 512
76
77def not32(i):
78 i_str = format(i,'032b')
79 new_str = ''
80 for c in i_str:
81 new_str += '1' if c=='0' else '0'
82 return int(new_str,2)
83
84def sum32(a,b):
85 return (a + b) % 2**32

Callers 1

md5meFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected