source: trunk/symbol_table/hash_strms.py @ 1969

Last change on this file since 1969 was 1969, checked in by ksherdy, 7 years ago

Restructuring.

File size: 321 bytes
Line 
1class Hash():
2    h0 = 0
3    h1 = 0
4
5def Gen_hash_streams(basis_bits, hash):
6    hash.h0 = basis_bits.bit_2 ^ basis_bits.bit_3 ^ basis_bits.bit_4 ^ basis_bits.bit_5
7    hash.h1 = basis_bits.bit_0 ^ basis_bits.bit_1 ^ basis_bits.bit_6 ^ basis_bits.bit_7
8
9def Main(basis_bits, hash):
10    Gen_hash_streams(basis_bits, hash)
Note: See TracBrowser for help on using the repository browser.