Skip to content

Commit e20b6f1

Browse files
authored
Move pulp to workspace and drop num-complex patch (#282)
1 parent bf76302 commit e20b6f1

6 files changed

Lines changed: 98 additions & 67 deletions

File tree

Cargo.lock

Lines changed: 63 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ rust-version = "1.73"
1414

1515
[workspace.dependencies]
1616
clap = { version = "^4.5.4", features = ["derive"] }
17-
concrete-ntt = "^0.1.2"
17+
tfhe-ntt = "^0.6.0"
1818
console = "^0.15.8"
1919
criterion = "^0.5.1"
2020
doc-comment = "^0.3.3"
@@ -28,12 +28,15 @@ ndarray = "^0.15.6"
2828
num-bigint = "^0.4.4"
2929
num-bigint-dig = "^0.8.4"
3030
num-traits = "^0.2.18"
31+
num-complex = { version = "^0.4.6", features = ["libm"] }
3132
proptest = "^1.4.0"
3233
prost = "^0.12.4"
3334
prost-build = "^0.12.3"
35+
pulp = "^0.21.5"
3436
rand = "^0.8.5"
3537
rand_chacha = "^0.3.1"
3638
sha2 = "^0.10.8"
3739
thiserror = "^1.0.58"
3840
zeroize = "^1.8.0"
3941
zeroize_derive = "^1.4.2"
42+

crates/fhe-math/Cargo.toml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ rust-version.workspace = true
1313
bench = false # Disable default bench (we use criterion)
1414

1515
[features]
16-
concrete-ntt = []
17-
concrete-ntt-nightly = ["concrete-ntt/nightly"]
16+
tfhe-ntt = []
17+
tfhe-ntt-nightly = ["tfhe-ntt/nightly"]
1818

1919
[dependencies]
2020
fhe-traits = { version = "^0.1.0-beta.8", path = "../fhe-traits" }
2121
fhe-util = { version = "^0.1.0-beta.8", path = "../fhe-util" }
2222

23-
concrete-ntt.workspace = true
23+
tfhe-ntt.workspace = true
2424
derivative = "^2.2.0"
2525
ethnum.workspace = true
2626
fastdiv.workspace = true
@@ -30,13 +30,14 @@ num-bigint.workspace = true
3030
num-bigint-dig.workspace = true
3131
num-traits.workspace = true
3232
prost.workspace = true
33-
pulp = "^0.18.9"
33+
pulp.workspace = true
3434
rand.workspace = true
3535
rand_chacha.workspace = true
3636
thiserror.workspace = true
3737
zeroize.workspace = true
3838
zeroize_derive.workspace = true
3939
sha2.workspace = true
40+
num-complex.workspace = true
4041

4142
[build-dependencies]
4243
prost-build.workspace = true

crates/fhe-math/src/ntt/mod.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ use fhe_util::is_prime;
44

55
mod native;
66

7-
#[cfg(any(feature = "concrete-ntt", feature = "concrete-ntt-nightly"))]
8-
mod concrete;
7+
#[cfg(any(feature = "tfhe-ntt", feature = "tfhe-ntt-nightly"))]
8+
mod tfhe;
99

10-
#[cfg(any(feature = "concrete-ntt", feature = "concrete-ntt-nightly"))]
11-
pub use concrete::NttOperator;
12-
#[cfg(not(any(feature = "concrete-ntt", feature = "concrete-ntt-nightly")))]
10+
#[cfg(not(any(feature = "tfhe-ntt", feature = "tfhe-ntt-nightly")))]
1311
pub use native::NttOperator;
12+
#[cfg(any(feature = "tfhe-ntt", feature = "tfhe-ntt-nightly"))]
13+
pub use tfhe::NttOperator;
1414

1515
/// Returns whether a modulus p is prime and supports the Number Theoretic
1616
/// Transform of size n.

0 commit comments

Comments
 (0)