Skip to content

Commit

Permalink
chore: Minor fixes and remove unused files
Browse files Browse the repository at this point in the history
  • Loading branch information
jimouris committed Mar 27, 2024
1 parent 693846e commit d01660b
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 89 deletions.
12 changes: 0 additions & 12 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ assert = "0.7"
x86 = ["tfhe/x86_64-unix"]
aarch64 = ["tfhe/aarch64-unix"]

[[bin]]
name = "haar"
path = "src/haar.rs"

[[bin]]
name = "float_lr"
path = "src/float_lr.rs"
Expand All @@ -39,11 +35,3 @@ path = "src/encrypted_lr.rs"
[[bin]]
name = "encrypted_lr_dwt"
path = "src/encrypted_lr_dwt.rs"

[[bin]]
name = "lut_test"
path = "src/lut_test.rs"

[[bin]]
name = "lut_split_test"
path = "src/lut_split_test.rs"
5 changes: 3 additions & 2 deletions src/common.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use dwt::{transform, wavelet::Haar, Operation};
use std::fs::File;

use dwt::{transform, wavelet::Haar, Operation};

pub fn to_signed(x: u64, bit_width: u8) -> i64 {
if x > (1u64 << (bit_width - 1)) {
(x as i128 - (1i128 << bit_width)) as i64
Expand Down Expand Up @@ -132,7 +133,7 @@ pub fn haar(precision: u8, bit_width: u8) -> (Vec<u64>, Vec<u64>) {
let haar = data
.get(0..coef_len)
.unwrap()
.into_iter()
.iter()
.map(|x| quantize(*x, precision, bit_width));
let lsb = haar.clone().map(|x| x & 0xFF).collect();
let msb = haar.map(|x| x >> (bit_width / 2) & 0xFF).collect();
Expand Down
1 change: 0 additions & 1 deletion src/encrypted_lr_dwt.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use std::time::Instant;
// collections::HashMap, fs::File, io::BufReader,

use fhe_lut::common::*;
use rayon::prelude::*;
Expand Down
49 changes: 0 additions & 49 deletions src/lut_split_test.rs

This file was deleted.

25 changes: 0 additions & 25 deletions src/lut_test.rs

This file was deleted.

0 comments on commit d01660b

Please sign in to comment.