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

fix: fpcomp example #65

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

fix: fpcomp example #65

wants to merge 1 commit into from

Conversation

rosshjb
Copy link
Contributor

@rosshjb rosshjb commented Nov 7, 2024

Two fixes were made:

  • The fpcomp function should return 1 if the arguments are equal(The difference between them is smaller than epsilon), else return 0. We go to notequal if the result of fcmp is greater than or equal to tolerance e.
  • In the maincomp.s, before calling fpcomp, the previously calculated running sum must be stored into runsum.

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