From 30686a8e693f2d61bda933d1370b6ea50b8bf0a6 Mon Sep 17 00:00:00 2001 From: Malfurious Date: Thu, 25 Nov 2021 01:16:18 -0500 Subject: Remove redundant rust code This logic has already been reimplemented in C, or is otherwise unneeded. Signed-off-by: Malfurious --- src/main.rs | 31 ------------------------------- 1 file changed, 31 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index bfed16b..5197cbe 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,34 +1,3 @@ -mod iter; -mod load_file; -mod demo_hash; - -use num::BigInt; -use num::bigint::Sign; - -fn vec_pop_cnt(v: &Vec) -> u32 -{ - let mut cnt = 0; - - for x in v - { - cnt += x.count_ones(); - } - - cnt -} - -fn pop_cnt_vec(c: u32) -> Vec -{ - let mut v = Vec::new(); - v.push(2u8.pow(c % 8) - 1); - for _ in 0..(c / 8) - { - v.push(0xff); - } - - v -} - fn main() { /* "Compression" setup */ -- cgit v1.2.3