o more crc checking

This commit is contained in:
optixx
2009-04-24 09:21:54 +02:00
parent 0c378a9f7c
commit edf204ac24
4 changed files with 11 additions and 5 deletions

View File

@@ -18,8 +18,10 @@ for i in range(bits-1,-1,-1):
else:
sys.stdout.write("0")
if i and not i%8:
sys.stdout.write(" ")
sys.stdout.write(" ")
print
print "0x%x"% v
print v

View File

@@ -34,6 +34,7 @@ def test_performance():
def test_algo():
data='david'
data='d'
print "%x" % do_crc(data)
@@ -59,6 +60,7 @@ def main():
#print result
if __name__ == '__main__':
test_algo()
main()