Function to initialize the lookup table for u16 values
()
| 14 | |
| 15 | // Function to initialize the lookup table for u16 values |
| 16 | pub fn initialize_u16_lookup_table() { |
| 17 | for i in 0..U16_TABLE_SIZE { |
| 18 | unsafe { |
| 19 | U16_LOOKUP_TABLE[i] = shift_and_accumulate_u16(i as u16); |
| 20 | } |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | // Helper function to compute shift_and_accumulate for u16 values |
| 25 | fn shift_and_accumulate_u16(value: u16) -> u32 { |
no test coverage detected