mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-04 20:24:10 +00:00
Remove Selfs which don't compile anymore
This commit is contained in:
parent
738cfee020
commit
a7df9c7918
1 changed files with 4 additions and 4 deletions
|
|
@ -257,7 +257,7 @@ impl u64x4 {
|
|||
pub fn new(x0: u64, x1: u64, x2: u64, x3: u64) -> u64x4 {
|
||||
unsafe {
|
||||
// _mm256_set_epi64 sets the underlying vector in reverse order of the args
|
||||
Self(core::arch::x86_64::_mm256_set_epi64x(
|
||||
u64x4(core::arch::x86_64::_mm256_set_epi64x(
|
||||
x3 as i64, x2 as i64, x1 as i64, x0 as i64,
|
||||
))
|
||||
}
|
||||
|
|
@ -267,7 +267,7 @@ impl u64x4 {
|
|||
#[unsafe_target_feature("avx2")]
|
||||
#[inline]
|
||||
pub fn splat(x: u64) -> u64x4 {
|
||||
unsafe { Self(core::arch::x86_64::_mm256_set1_epi64x(x as i64)) }
|
||||
unsafe { u64x4(core::arch::x86_64::_mm256_set1_epi64x(x as i64)) }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -308,7 +308,7 @@ impl u32x8 {
|
|||
pub fn new(x0: u32, x1: u32, x2: u32, x3: u32, x4: u32, x5: u32, x6: u32, x7: u32) -> u32x8 {
|
||||
unsafe {
|
||||
// _mm256_set_epi32 sets the underlying vector in reverse order of the args
|
||||
Self(core::arch::x86_64::_mm256_set_epi32(
|
||||
u32x8(core::arch::x86_64::_mm256_set_epi32(
|
||||
x7 as i32, x6 as i32, x5 as i32, x4 as i32, x3 as i32, x2 as i32, x1 as i32,
|
||||
x0 as i32,
|
||||
))
|
||||
|
|
@ -319,7 +319,7 @@ impl u32x8 {
|
|||
#[unsafe_target_feature("avx2")]
|
||||
#[inline]
|
||||
pub fn splat(x: u32) -> u32x8 {
|
||||
unsafe { Self(core::arch::x86_64::_mm256_set1_epi32(x as i32)) }
|
||||
unsafe { u32x8(core::arch::x86_64::_mm256_set1_epi32(x as i32)) }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue