mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-04 20:24:10 +00:00
Make platform-vector lanes constants private
This commit is contained in:
parent
00d8b6ea4f
commit
64cb999866
2 changed files with 9 additions and 11 deletions
|
|
@ -26,7 +26,7 @@ use scalar_mul::window::{LookupTable, NafLookupTable5, NafLookupTable8};
|
|||
|
||||
use traits::Identity;
|
||||
|
||||
use backend::avx2::field::{FieldElement32x4, Lanes, Shuffle, D_LANES};
|
||||
use backend::avx2::field::{FieldElement32x4, Lanes, Shuffle};
|
||||
|
||||
use backend::avx2;
|
||||
|
||||
|
|
|
|||
|
|
@ -12,17 +12,15 @@
|
|||
|
||||
#![allow(bad_style)]
|
||||
|
||||
pub const A_LANES: u8 = 0b0000_0101;
|
||||
pub const B_LANES: u8 = 0b0000_1010;
|
||||
pub const C_LANES: u8 = 0b0101_0000;
|
||||
pub const D_LANES: u8 = 0b1010_0000;
|
||||
const A_LANES: u8 = 0b0000_0101;
|
||||
const B_LANES: u8 = 0b0000_1010;
|
||||
const C_LANES: u8 = 0b0101_0000;
|
||||
const D_LANES: u8 = 0b1010_0000;
|
||||
|
||||
pub const A_LANES64: u8 = 0b00_00_00_11;
|
||||
pub const B_LANES64: u8 = 0b00_00_11_00;
|
||||
pub const C_LANES64: u8 = 0b00_11_00_00;
|
||||
pub const D_LANES64: u8 = 0b11_00_00_00;
|
||||
|
||||
pub const ALL_LANES: u8 = A_LANES | B_LANES | C_LANES | D_LANES;
|
||||
const A_LANES64: u8 = 0b00_00_00_11;
|
||||
const B_LANES64: u8 = 0b00_00_11_00;
|
||||
const C_LANES64: u8 = 0b00_11_00_00;
|
||||
const D_LANES64: u8 = 0b11_00_00_00;
|
||||
|
||||
use core::ops::{Add, Mul, Neg};
|
||||
use core::simd::{i32x8, u32x8, u64x4, IntoBits};
|
||||
|
|
|
|||
Loading…
Reference in a new issue