From f28635ab4e6580115ff657bb914c96548a7dbfd9 Mon Sep 17 00:00:00 2001 From: Henry de Valence Date: Sun, 19 Nov 2017 14:53:45 -0800 Subject: [PATCH] Add a new 'avx2_backend' yolocrypto feature --- Cargo.toml | 6 +++--- src/backend/mod.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index ac1b8d6..390a2c5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -70,11 +70,11 @@ nightly = ["radix_51", "subtle/nightly"] default = ["std"] std = ["rand", "subtle/std"] alloc = [] -# This isn't used at the moment, but keep it around for future yolocrypto features. -yolocrypto = [] +yolocrypto = ["avx2_backend"] bench = [] # Radix-51 arithmetic using u128 radix_51 = [] # Include precomputed basepoint tables. This is off by default so that build.rs can generate the tables, and then re-enabled by build.rs in the main-stage compilation. precomputed_tables = [] - +# experimental avx2 support +avx2_backend = ["radix_51"] diff --git a/src/backend/mod.rs b/src/backend/mod.rs index 12957d6..e68786e 100644 --- a/src/backend/mod.rs +++ b/src/backend/mod.rs @@ -29,6 +29,6 @@ pub mod u32; pub mod u64; /// Code using AVX2. -#[cfg(all(feature="yolocrypto", feature="radix_51"))] +#[cfg(all(feature="yolocrypto", feature="avx2_backend"))] pub mod avx2;