Skip to content

Conversation

@willieyz
Copy link
Contributor

@willieyz willieyz marked this pull request as ready for review December 17, 2025 02:28
@willieyz willieyz requested a review from a team as a code owner December 17, 2025 02:28

#define STACK_SIZE (16*6 + 8*8 + 6*8 + (STACK_LOCS) * 8)
#define MLK_STACK_SIZE (16*6 + 8*8 + 6*8 + (STACK_LOCS) * 8)
#define STACK_BASE_GPRS (6*8)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We shouldn't namespace STACK_SIZE, but not the other macros; either all of them, or none.

Copy link
Contributor

@hanno-becker hanno-becker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we do this we should namespace all macros in the assembly files.

Note that the lack of namespacing here is of little effect since all affected files are in dev/ and not in the main source tree.

@willieyz willieyz force-pushed the namespace-STACK_SIZE branch 3 times, most recently from a7001df to 59a18fd Compare December 17, 2025 10:50
@willieyz willieyz marked this pull request as draft December 18, 2025 02:00
@willieyz willieyz force-pushed the namespace-STACK_SIZE branch 2 times, most recently from e96e223 to 0878495 Compare December 31, 2025 10:24
@willieyz willieyz marked this pull request as ready for review December 31, 2025 10:39
@willieyz willieyz marked this pull request as draft December 31, 2025 11:06
@willieyz willieyz force-pushed the namespace-STACK_SIZE branch 4 times, most recently from f855045 to b6a4787 Compare January 3, 2026 20:24
@willieyz willieyz force-pushed the namespace-STACK_SIZE branch from b6a4787 to 4db09cb Compare January 9, 2026 11:49
- The STACK_SIZE should namespace as MLK_STACK_SIZE
  to avoid clashing with symbols in consuming libraries.
- Also, found a missing namespace macro called KECCAK_F1600_ROUNDS,
  also namespace it.

- This commit also namespace rej_uniform_asm

Signed-off-by: willieyz <[email protected]>
@willieyz willieyz force-pushed the namespace-STACK_SIZE branch from 4db09cb to 5f64f67 Compare January 12, 2026 03:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Namespace STACK_SIZE in various assembly files

3 participants