#![allow(dead_code)]
extern crate core;
#[path = "../src/common.rs"]
mod common;
#[path = "../src/d2s_full_table.rs"]
mod d2s_full_table;
#[path = "../src/d2s_intrinsics.rs"]
mod d2s_intrinsics;
#[path = "../src/d2s_small_table.rs"]
mod d2s_small_table;
use d2s_full_table::*;
use d2s_small_table::*;
#[test]
fn test_compute_pow5() {
for (i, entry) in DOUBLE_POW5_SPLIT.iter().enumerate() {
assert_eq!(*entry, unsafe { compute_pow5(i as u32) }, "entry {}", i);
}
}
#[test]
fn test_compute_inv_pow5() {
for (i, entry) in DOUBLE_POW5_INV_SPLIT.iter().enumerate() {
assert_eq!(*entry, unsafe { compute_inv_pow5(i as u32) }, "entry {}", i);
}
}