Skip to content

fix: fpcomp example#65

Open
rosshjb wants to merge 1 commit intobelow:mainfrom
rosshjb:float-fix
Open

fix: fpcomp example#65
rosshjb wants to merge 1 commit intobelow:mainfrom
rosshjb:float-fix

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