|
|
@ -8,10 +8,6 @@ |
|
|
|
//! assert_eq!(CKSUM, 0x414fa339_u32);
|
|
|
|
//! assert_eq!(CKSUM, 0x414fa339_u32);
|
|
|
|
//! ```
|
|
|
|
//! ```
|
|
|
|
|
|
|
|
|
|
|
|
#![feature(const_eval_limit)] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#![const_eval_limit = "1000000000"] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// used to generate up a [u32; 256] lookup table in `crc32`. this computes
|
|
|
|
/// used to generate up a [u32; 256] lookup table in `crc32`. this computes
|
|
|
|
/// the table on demand for a given "index" `i`
|
|
|
|
/// the table on demand for a given "index" `i`
|
|
|
|
const fn table_fn(i: u32) -> u32 { |
|
|
|
const fn table_fn(i: u32) -> u32 { |
|
|
|