Skip to content

Preserve floating point state when calling randomx_calculate_hash#182

Merged
tevador merged 2 commits intomasterfrom
pr-restore-fpstate
May 16, 2020
Merged

Preserve floating point state when calling randomx_calculate_hash#182
tevador merged 2 commits intomasterfrom
pr-restore-fpstate

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