mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-02 22:03:07 +00:00
Fix build on main (#396)
This commit is contained in:
parent
68e3befc08
commit
357eea8df5
@ -1,5 +1,3 @@
|
||||
#![feature(destructuring_assignment)]
|
||||
|
||||
use criterion::{criterion_group, criterion_main, BatchSize, Criterion};
|
||||
use plonky2::field::extension_field::quartic::QuarticExtension;
|
||||
use plonky2::field::field_types::Field;
|
||||
|
||||
@ -1,4 +1,3 @@
|
||||
#![feature(destructuring_assignment)]
|
||||
#![feature(generic_const_exprs)]
|
||||
|
||||
use criterion::{criterion_group, criterion_main, BatchSize, Criterion};
|
||||
|
||||
@ -323,6 +323,7 @@ impl RichField for GoldilocksField {}
|
||||
#[inline(always)]
|
||||
#[cfg(target_arch = "x86_64")]
|
||||
unsafe fn add_no_canonicalize_trashing_input(x: u64, y: u64) -> u64 {
|
||||
use std::arch::asm;
|
||||
let res_wrapped: u64;
|
||||
let adjustment: u64;
|
||||
asm!(
|
||||
@ -363,6 +364,7 @@ unsafe fn add_no_canonicalize_trashing_input(x: u64, y: u64) -> u64 {
|
||||
#[inline(always)]
|
||||
#[cfg(target_arch = "x86_64")]
|
||||
unsafe fn sub_no_canonicalize_trashing_input(x: u64, y: u64) -> u64 {
|
||||
use std::arch::asm;
|
||||
let res_wrapped: u64;
|
||||
let adjustment: u64;
|
||||
asm!(
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
#![allow(clippy::assertions_on_constants)]
|
||||
|
||||
use std::arch::aarch64::*;
|
||||
use std::arch::asm;
|
||||
|
||||
use static_assertions::const_assert;
|
||||
use unroll::unroll_for_loops;
|
||||
|
||||
@ -4,9 +4,7 @@
|
||||
#![allow(clippy::too_many_arguments)]
|
||||
#![allow(clippy::len_without_is_empty)]
|
||||
#![allow(clippy::needless_range_loop)]
|
||||
#![feature(asm)]
|
||||
#![feature(asm_sym)]
|
||||
#![feature(destructuring_assignment)]
|
||||
#![feature(generic_const_exprs)]
|
||||
#![feature(specialization)]
|
||||
#![feature(stdsimd)]
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
use core::hint::unreachable_unchecked;
|
||||
use std::arch::asm;
|
||||
use std::hint::unreachable_unchecked;
|
||||
|
||||
use crate::field::field_types::Field;
|
||||
use crate::polynomial::PolynomialValues;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user