Force FieldT alignment
This commit is contained in:
parent
710059b779
commit
d0b589749a
@ -12,9 +12,13 @@ extern "C" {
|
||||
fn tinysnark_fieldt_add(a: FieldT, b: FieldT) -> FieldT;
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Debug)]
|
||||
#[repr(simd)]
|
||||
struct EightBytes(u64);
|
||||
|
||||
#[derive(Copy, Clone, Debug)]
|
||||
#[repr(C)]
|
||||
pub struct FieldT([u8; 32]);
|
||||
pub struct FieldT([u8; 32], [EightBytes; 0]);
|
||||
|
||||
impl FieldT {
|
||||
#[inline(always)]
|
||||
|
@ -1,4 +1,4 @@
|
||||
#![feature(box_syntax)]
|
||||
#![feature(box_syntax, repr_simd)]
|
||||
#![allow(improper_ctypes)]
|
||||
//#![cfg_attr(test, feature(test))]
|
||||
extern crate libc;
|
||||
|
Loading…
Reference in New Issue
Block a user