Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
karthikbhargavan committed Jan 18, 2025
1 parent 9d8d421 commit 7d21a8a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions libcrux-ml-kem/src/vector/avx2/arithmetic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,9 @@ pub(crate) fn montgomery_multiply_by_constant(vector: Vec256, constant: i16) ->
value_low,
mm256_set1_epi16(INVERSE_OF_MODULUS_MOD_MONTGOMERY_R as i16),
);
hax_lib::fstar!(r#"assert (forall i. get_lane $k i == get_lane $value_low i *. (neg (mk_i16 3327)))"#);
hax_lib::fstar!(
r#"assert (forall i. get_lane $k i == get_lane $value_low i *. (neg (mk_i16 3327)))"#
);
let modulus = mm256_set1_epi16(FIELD_MODULUS);
hax_lib::fstar!(r#"assert (forall i. get_lane $modulus i == (mk_i16 3329))"#);
let k_times_modulus = mm256_mulhi_epi16(k, modulus);
Expand Down Expand Up @@ -250,7 +252,9 @@ pub(crate) fn montgomery_multiply_by_constants(vec: Vec256, constants: Vec256) -
value_low,
mm256_set1_epi16(INVERSE_OF_MODULUS_MOD_MONTGOMERY_R as i16),
);
hax_lib::fstar!(r#"assert (forall i. get_lane $k i == get_lane $value_low i *. (neg (mk_i16 3327)))"#);
hax_lib::fstar!(
r#"assert (forall i. get_lane $k i == get_lane $value_low i *. (neg (mk_i16 3327)))"#
);

let modulus = mm256_set1_epi16(FIELD_MODULUS);
hax_lib::fstar!(r#"assert (forall i. get_lane $modulus i == (mk_i16 3329))"#);
Expand Down

0 comments on commit 7d21a8a

Please sign in to comment.