Skip to content

Fix bug that sometimes causes random distortion. (clear the floating point state at start too)#12

Open
TomArrow wants to merge 1 commit into
chirlu:masterfrom
TomArrow:master
Open

Fix bug that sometimes causes random distortion. (clear the floating point state at start too)#12
TomArrow wants to merge 1 commit into
chirlu:masterfrom
TomArrow:master

Conversation

@TomArrow

@TomArrow TomArrow commented Nov 14, 2023

Copy link
Copy Markdown

Not quite sure this is the correct solution but made sense to me based on my limited understanding, and it seems to get rid of the issue from a quick check.

Basically I think that for random reasons (probably not really random) the floating point state can end up having the invalid flag set, and apparently it must always be cleared. And here it is only cleared after doing the first check, but at that point it's already too late. So the first value in the array gets corrupted (overwritten with the clip value) but the rest is fine because then the floating point invalid flag is cleared.

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.

1 participant