Skip to content

Commit

Permalink
Reduce gates in enum and allow dead_code in it
Browse files Browse the repository at this point in the history
  • Loading branch information
pinkforest committed Jun 16, 2023
1 parent 4fe1079 commit 35b3cef
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions src/backend/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,9 @@ pub mod vector;

#[derive(Copy, Clone)]
enum BackendKind {
#[cfg(all(
target_arch = "x86_64",
curve25519_dalek_bits = "64",
not(curve25519_dalek_backend = "fiat"),
not(curve25519_dalek_backend = "serial")
))]
#[allow(dead_code)]
Avx2,
#[cfg(all(
target_arch = "x86_64",
nightly,
curve25519_dalek_bits = "64",
not(curve25519_dalek_backend = "fiat"),
not(curve25519_dalek_backend = "serial")
))]
#[allow(dead_code)]
Avx512,
Serial,
}
Expand Down

0 comments on commit 35b3cef

Please sign in to comment.