source:
trunk/symbol_table/pablo/hash_strms.py
Last change on this file was 2174, checked in by ksherdy, 7 years ago | |
---|---|
File size: 283 bytes |
Line | |
---|---|
1 | class Hash(): |
2 | h0 = 0 |
3 | h1 = 0 |
4 | |
5 | def Gen_hash_streams(basis_bits, hash): |
6 | hash.h0 = basis_bits.bit_3 ^ basis_bits.bit_5 ^ basis_bits.bit_7 |
7 | hash.h1 = basis_bits.bit_3 ^ basis_bits.bit_4 ^ basis_bits.bit_6 |
8 | |
9 | def Main(basis_bits, hash): |
10 | Gen_hash_streams(basis_bits, hash) |
Note: See TracBrowser
for help on using the repository browser.