Skip to content

Commit

Permalink
fix: remove conflict for asm
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanpwang committed Aug 13, 2023
1 parent 35e5f0d commit 146c186
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/derive/field.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,14 +273,6 @@ macro_rules! field_common {
}
}

impl From<$field> for [u64; 4] {
fn from(elt: $field) -> [u64; 4] {
// Turn into canonical form by computing
// (a.R) / R = a
$field::montgomery_reduce_short(&elt.0).0
}
}

impl From<$field> for [u8; 32] {
fn from(value: $field) -> [u8; 32] {
value.to_repr()
Expand Down Expand Up @@ -492,6 +484,14 @@ macro_rules! field_arithmetic {
(&$field([r0, r1, r2, r3])).sub(&$modulus)
}
}

impl From<$field> for [u64; 4] {
fn from(elt: $field) -> [u64; 4] {
// Turn into canonical form by computing
// (a.R) / R = a
$field::montgomery_reduce_short(&elt.0).0
}
}
};
}

Expand Down

0 comments on commit 146c186

Please sign in to comment.