Remove some warnings.

Not all of the warnings are removed, since although this code works, it still
needs a significant amount of cleanup, editing, and polish.
This commit is contained in:
Henry de Valence 2018-04-04 10:25:42 -07:00
parent b0bda0278c
commit 5f136fbd0c
2 changed files with 2 additions and 7 deletions

View file

@ -14,16 +14,14 @@
#![allow(bad_style)]
use core::convert::From;
use core::ops::{Index, Add, Sub, Mul, Neg};
use core::borrow::Borrow;
use core::ops::{Add, Sub, Neg};
use core::simd::{IntoBits, u32x8, i32x8};
use core::simd::{IntoBits, u32x8};
use subtle::ConditionallyAssignable;
use subtle::Choice;
use edwards;
use scalar::Scalar;
use scalar_mul::window::{LookupTable, OddLookupTable};
use traits::Identity;
@ -313,8 +311,6 @@ impl<'a> From<&'a edwards::EdwardsPoint> for OddLookupTable<CachedPoint> {
mod test {
use super::*;
use constants;
fn serial_add(P: edwards::EdwardsPoint, Q: edwards::EdwardsPoint) -> edwards::EdwardsPoint {
use backend::u64::field::FieldElement64;

View file

@ -268,7 +268,6 @@ impl FieldElement32x4 {
let masks = u32x8::new((1<<26)-1, (1<<26)-1, (1<<25)-1, (1<<25)-1,
(1<<26)-1, (1<<26)-1, (1<<25)-1, (1<<25)-1);
/// Compute the carry-out of each coefficient of v using a left shift.
let carry = |v: u32x8| -> u32x8 {
unsafe {
use core::arch::x86_64::_mm256_srlv_epi32;