mirror of
https://github.com/saymrwulf/risc0-curve25519-dalek-source.git
synced 2026-09-04 20:03:40 +00:00
Suppress extraneous warnings
This commit is contained in:
parent
7198719419
commit
15f97221ba
3 changed files with 9 additions and 4 deletions
|
|
@ -10,8 +10,7 @@
|
|||
|
||||
//! Extended Twisted Edwards for Curve25519, using AVX2.
|
||||
|
||||
// just going to own it
|
||||
#![allow(bad_style)]
|
||||
#![allow(non_snake_case)]
|
||||
|
||||
use core::convert::From;
|
||||
use core::ops::{Add, Neg, Sub};
|
||||
|
|
@ -393,7 +392,7 @@ mod test {
|
|||
}
|
||||
|
||||
fn serial_double(P: edwards::EdwardsPoint) -> edwards::EdwardsPoint {
|
||||
let (X1, Y1, Z1, T1) = (P.X, P.Y, P.Z, P.T);
|
||||
let (X1, Y1, Z1, _T1) = (P.X, P.Y, P.Z, P.T);
|
||||
|
||||
macro_rules! print_var {
|
||||
($x:ident) => {
|
||||
|
|
|
|||
|
|
@ -10,16 +10,20 @@
|
|||
|
||||
//! 4-way vectorized 32bit field arithmetic using AVX2.
|
||||
|
||||
#![allow(bad_style)]
|
||||
#![allow(non_snake_case)]
|
||||
|
||||
const A_LANES: u8 = 0b0000_0101;
|
||||
const B_LANES: u8 = 0b0000_1010;
|
||||
const C_LANES: u8 = 0b0101_0000;
|
||||
const D_LANES: u8 = 0b1010_0000;
|
||||
|
||||
#[allow(unused)]
|
||||
const A_LANES64: u8 = 0b00_00_00_11;
|
||||
#[allow(unused)]
|
||||
const B_LANES64: u8 = 0b00_00_11_00;
|
||||
#[allow(unused)]
|
||||
const C_LANES64: u8 = 0b00_11_00_00;
|
||||
#[allow(unused)]
|
||||
const D_LANES64: u8 = 0b11_00_00_00;
|
||||
|
||||
use core::ops::{Add, Mul, Neg};
|
||||
|
|
|
|||
|
|
@ -8,6 +8,8 @@
|
|||
// - Isis Agora Lovecruft <isis@patternsinthevoid.net>
|
||||
// - Henry de Valence <hdevalence@hdevalence.ca>
|
||||
|
||||
#![allow(non_snake_case)]
|
||||
|
||||
use core::borrow::Borrow;
|
||||
|
||||
use clear_on_drop::ClearOnDrop;
|
||||
|
|
|
|||
Loading…
Reference in a new issue