Skip to content

Unify code#36

Merged
jaja360 merged 5 commits into
masterfrom
unify_code
Apr 28, 2025
Merged

Unify code#36
jaja360 merged 5 commits into
masterfrom
unify_code

Conversation

@jaja360
Copy link
Copy Markdown
Collaborator

@jaja360 jaja360 commented Apr 27, 2025

There was a lot of code in common between exhaustivefloat32, thoroughfloat64 and benchmark.cpp:evaluateProperties. This PR factor common code into benchutil.cpp and floatutils.h. It also has some added benefits:

  • using concepts to document code and improve compile errors
  • benchmark.cpp:evaluateProperties only measured round-trip validity. It now also checks minimal significant length (just like exhaustivefloat32 and thoroughfloat64 already did).
  • Fixes some typos and inconsistencies in the code

Copy link
Copy Markdown
Member

@lemire lemire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are getting there !!!

@jaja360 jaja360 merged commit ff76a9d into master Apr 28, 2025
8 checks passed
@jaja360 jaja360 deleted the unify_code branch April 28, 2025 19:38
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.

2 participants