Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SP int: inline asm improvements and mont reduce simplifications #8527

Merged
merged 1 commit into from
Mar 4, 2025

Conversation

SparkiDev
Copy link
Contributor

Description

SP int inline asm:

  • allow input variables to be either registers or memory for Intel x86/x64 (minor performance improvement)
    • don't have memory in clobber list if output variables are registers
  • remove empty clobber line in arm32/thumb2 code for old versions of gcc
    _sp_mont_red():
    • simplify the code by not using extra variables
    • don't add to j in for loop check.

Fixes #8523

Testing

Regression tested SP int code.

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

SP int inline asm:
- allow input variables to be either registers or memory for Intel
x86/x64 (minor performance improvement)
  - don't have memory in clobber list if output variables are registers
- remove empty clobber line in arm32/thumb2 code for old versions of
gcc
_sp_mont_red():
  - simplify the code by not using extra variables
  - don't add to j in for loop check.
@SparkiDev SparkiDev self-assigned this Mar 4, 2025
@SparkiDev
Copy link
Contributor Author

retest this please

Hudson

@SparkiDev SparkiDev assigned wolfSSL-Bot and unassigned SparkiDev Mar 4, 2025
@SparkiDev SparkiDev requested a review from wolfSSL-Bot March 4, 2025 21:58
@dgarske dgarske merged commit a073868 into wolfSSL:master Mar 4, 2025
178 checks passed
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.

[Bug]: Invalid inline asm for ARM32
4 participants