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

Preserve floating point state when calling randomx_calculate_hash #182

Merged
merged 2 commits into from
May 16, 2020

Conversation

tevador
Copy link
Owner

@tevador tevador commented May 6, 2020

Technically, the floating point registers are nonvolatile in most calling conventions, so we should preserve their values.

Not preserved for randomx_calculate_hash_{first,next,last}, but I added a warning in their description. These functions typically run in worker threads, so altering the rounding mode should not be a big problem there.

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.

3 participants