-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(metal): reorganize data structure into new types
- for better get_constant.metal usage - Moved BigInt and Jacobian struct definitions to a new types.metal file for better organization. - Updated bigint.metal to include get_constant.metal instead of constants.metal. - Removed unused struct definitions from jacobian.metal to streamline the code. - Enhanced modularity by separating type definitions from function implementations.
- Loading branch information
Showing
4 changed files
with
24 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
using namespace metal; | ||
#include <metal_stdlib> | ||
|
||
struct BigInt { | ||
array<uint, NUM_LIMBS> limbs; | ||
}; | ||
|
||
struct BigIntWide { | ||
array<uint, NUM_LIMBS_WIDE> limbs; | ||
}; | ||
|
||
struct Jacobian { | ||
BigInt x; | ||
BigInt y; | ||
BigInt z; | ||
}; | ||
|
||
struct Affine { | ||
BigInt x; | ||
BigInt y; | ||
}; |