Last change
on this file since 166 was
166,
checked in by (none), 14 years ago
|
HadoopA51: imported git repository from github
|
File size:
728 bytes
|
Rev | Line | |
---|
[166] | 1 | package ro.pub.cs.pp.a51hadoop.algorithm.a51; |
---|
| 2 | |
---|
| 3 | public class A51Constants |
---|
| 4 | { |
---|
| 5 | /* |
---|
| 6 | * which bits of a 32bit variable actually play a role |
---|
| 7 | */ |
---|
| 8 | public final static int R_mask[] = |
---|
| 9 | { |
---|
| 10 | /* 19 bits, numbered 0..18 */ |
---|
| 11 | 0x07FFFF, |
---|
| 12 | /* 22 bits, numbered 0..21 */ |
---|
| 13 | 0x3FFFFF, |
---|
| 14 | /* 23 bits, numbered 0..22 */ |
---|
| 15 | 0x7FFFFF, |
---|
| 16 | }; |
---|
| 17 | |
---|
| 18 | |
---|
| 19 | /* Middle bit of each of the shift registers */ |
---|
| 20 | public final static int R_middle_pos[] = |
---|
| 21 | { |
---|
| 22 | 8, |
---|
| 23 | 10, |
---|
| 24 | 10, |
---|
| 25 | }; |
---|
| 26 | |
---|
| 27 | |
---|
| 28 | /* Feedback taps. */ |
---|
| 29 | public final static int R_feedback_taps[] = |
---|
| 30 | { |
---|
| 31 | (1 << 13) | ( 1 << 16) | (1 << 17) | ( 1 << 18), |
---|
| 32 | (1 << 20) | ( 1 << 21), |
---|
| 33 | (1 << 7) | ( 1 << 20) | (1 << 21) | ( 1 << 22), |
---|
| 34 | }; |
---|
| 35 | |
---|
| 36 | |
---|
| 37 | /* Output taps. */ |
---|
| 38 | public final static int R_output_taps[] = |
---|
| 39 | { |
---|
| 40 | 18, |
---|
| 41 | 21, |
---|
| 42 | 22, |
---|
| 43 | }; |
---|
| 44 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.