mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-07 08:13:11 +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 criterion::{criterion_group, criterion_main, BatchSize, Criterion};
|
||||||
use plonky2::field::extension_field::quartic::QuarticExtension;
|
use plonky2::field::extension_field::quartic::QuarticExtension;
|
||||||
use plonky2::field::field_types::Field;
|
use plonky2::field::field_types::Field;
|
||||||
|
|||||||
@ -1,4 +1,3 @@
|
|||||||
#![feature(destructuring_assignment)]
|
|
||||||
#![feature(generic_const_exprs)]
|
#![feature(generic_const_exprs)]
|
||||||
|
|
||||||
use criterion::{criterion_group, criterion_main, BatchSize, Criterion};
|
use criterion::{criterion_group, criterion_main, BatchSize, Criterion};
|
||||||
|
|||||||
@ -323,6 +323,7 @@ impl RichField for GoldilocksField {}
|
|||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
#[cfg(target_arch = "x86_64")]
|
#[cfg(target_arch = "x86_64")]
|
||||||
unsafe fn add_no_canonicalize_trashing_input(x: u64, y: u64) -> u64 {
|
unsafe fn add_no_canonicalize_trashing_input(x: u64, y: u64) -> u64 {
|
||||||
|
use std::arch::asm;
|
||||||
let res_wrapped: u64;
|
let res_wrapped: u64;
|
||||||
let adjustment: u64;
|
let adjustment: u64;
|
||||||
asm!(
|
asm!(
|
||||||
@ -363,6 +364,7 @@ unsafe fn add_no_canonicalize_trashing_input(x: u64, y: u64) -> u64 {
|
|||||||
#[inline(always)]
|
#[inline(always)]
|
||||||
#[cfg(target_arch = "x86_64")]
|
#[cfg(target_arch = "x86_64")]
|
||||||
unsafe fn sub_no_canonicalize_trashing_input(x: u64, y: u64) -> u64 {
|
unsafe fn sub_no_canonicalize_trashing_input(x: u64, y: u64) -> u64 {
|
||||||
|
use std::arch::asm;
|
||||||
let res_wrapped: u64;
|
let res_wrapped: u64;
|
||||||
let adjustment: u64;
|
let adjustment: u64;
|
||||||
asm!(
|
asm!(
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
#![allow(clippy::assertions_on_constants)]
|
#![allow(clippy::assertions_on_constants)]
|
||||||
|
|
||||||
use std::arch::aarch64::*;
|
use std::arch::aarch64::*;
|
||||||
|
use std::arch::asm;
|
||||||
|
|
||||||
use static_assertions::const_assert;
|
use static_assertions::const_assert;
|
||||||
use unroll::unroll_for_loops;
|
use unroll::unroll_for_loops;
|
||||||
|
|||||||
@ -4,9 +4,7 @@
|
|||||||
#![allow(clippy::too_many_arguments)]
|
#![allow(clippy::too_many_arguments)]
|
||||||
#![allow(clippy::len_without_is_empty)]
|
#![allow(clippy::len_without_is_empty)]
|
||||||
#![allow(clippy::needless_range_loop)]
|
#![allow(clippy::needless_range_loop)]
|
||||||
#![feature(asm)]
|
|
||||||
#![feature(asm_sym)]
|
#![feature(asm_sym)]
|
||||||
#![feature(destructuring_assignment)]
|
|
||||||
#![feature(generic_const_exprs)]
|
#![feature(generic_const_exprs)]
|
||||||
#![feature(specialization)]
|
#![feature(specialization)]
|
||||||
#![feature(stdsimd)]
|
#![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::field::field_types::Field;
|
||||||
use crate::polynomial::PolynomialValues;
|
use crate::polynomial::PolynomialValues;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user