Skip to content

Commit

Permalink
chore: update path for contants.metal
Browse files Browse the repository at this point in the history
  • Loading branch information
moven0831 committed Dec 17, 2024
1 parent 4caa91b commit 0a098db
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 16 deletions.
2 changes: 1 addition & 1 deletion mopro-msm/src/msm/metal_msm/shader/bigint/bigint.metal
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// source: https://github.com/geometryxyz/msl-secp256k1

using namespace metal;
#include "constants.metal"
#include "../constants.metal"

struct BigInt {
array<uint, NUM_LIMBS> limbs;
Expand Down
8 changes: 0 additions & 8 deletions mopro-msm/src/msm/metal_msm/shader/bigint/constants.metal

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub fn test_bigint_add_unsafe() {
let encoder = command_buffer.compute_command_encoder_with_descriptor(compute_pass_descriptor);

write_constants(
"../mopro-msm/src/msm/metal_msm/shader/bigint",
"../mopro-msm/src/msm/metal_msm/shader",
num_limbs,
log_limb_size,
0,
Expand Down
4 changes: 2 additions & 2 deletions mopro-msm/src/msm/metal_msm/tests/bigint/bigint_add_wide.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub fn test_bigint_add() {
let encoder = command_buffer.compute_command_encoder_with_descriptor(compute_pass_descriptor);

write_constants(
"../mopro-msm/src/msm/metal_msm/shader/bigint",
"../mopro-msm/src/msm/metal_msm/shader",
num_limbs,
log_limb_size,
0,
Expand Down Expand Up @@ -133,7 +133,7 @@ pub fn test_bigint_add_no_overflow() {
let encoder = command_buffer.compute_command_encoder_with_descriptor(compute_pass_descriptor);

write_constants(
"../mopro-msm/src/msm/metal_msm/shader/bigint",
"../mopro-msm/src/msm/metal_msm/shader",
num_limbs,
log_limb_size,
0,
Expand Down
4 changes: 2 additions & 2 deletions mopro-msm/src/msm/metal_msm/tests/bigint/bigint_sub.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ pub fn test_bigint_sub() {
let encoder = command_buffer.compute_command_encoder_with_descriptor(compute_pass_descriptor);

write_constants(
"../mopro-msm/src/msm/metal_msm/shader/bigint",
"../mopro-msm/src/msm/metal_msm/shader",
num_limbs,
log_limb_size,
0,
Expand Down Expand Up @@ -129,7 +129,7 @@ fn test_bigint_sub_underflow() {
let encoder = command_buffer.compute_command_encoder_with_descriptor(compute_pass_descriptor);

write_constants(
"../mopro-msm/src/msm/metal_msm/shader/bigint",
"../mopro-msm/src/msm/metal_msm/shader",
num_limbs,
log_limb_size,
0,
Expand Down
2 changes: 1 addition & 1 deletion mopro-msm/src/msm/metal_msm/tests/field/ff_add.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pub fn test_ff_add() {
let encoder = command_buffer.compute_command_encoder_with_descriptor(compute_pass_descriptor);

write_constants(
"../mopro-msm/src/msm/metal_msm/shader/field",
"../mopro-msm/src/msm/metal_msm/shader",
num_limbs,
log_limb_size,
0,
Expand Down
2 changes: 1 addition & 1 deletion mopro-msm/src/msm/metal_msm/tests/field/ff_sub.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ pub fn test_ff_sub() {
let encoder = command_buffer.compute_command_encoder_with_descriptor(compute_pass_descriptor);

write_constants(
"../mopro-msm/src/msm/metal_msm/shader/field",
"../mopro-msm/src/msm/metal_msm/shader",
num_limbs,
log_limb_size,
0,
Expand Down

0 comments on commit 0a098db

Please sign in to comment.