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

Integration: Lipchev support nan and infnity #50

Merged
merged 18 commits into from
Apr 29, 2024

Conversation

danm-de
Copy link
Owner

@danm-de danm-de commented Apr 28, 2024

Trying to integrate pull request #48 with changes.

lipchev and others added 8 commits April 21, 2024 17:10
- NaN represented by {0/0}
- PositiveInfinity represented by {1/0}
- NegativeInfinity represented by {-1/0}
- Zero is now represented by {0/1}

updating the tests and the benchmark results
…(%) function

- removed the GCD checking in the CompareTo (up to 2x peformaince gain)
- refactored the Add/Multiply/Divide/Pow operations (another ~20% improvements on the BasicMathBenchmarks and up to 35% on the PowerMathBenchmarks)
- adding more edge-case values to the benchmarks (this time actually using Pow(10, 37) instead of 10^37...)
…ction) is equal to Fraction.Zero` does not have to be checked everywhere.

Replace backing fields with property (getter) - if possible (JIT will optimize this later).
BREAKING CHANGE: use current culture if no IFormatProvider is specified.
@danm-de danm-de changed the title Lipchev support nan and infnity Integration: Lipchev support nan and infnity Apr 28, 2024
@danm-de danm-de force-pushed the lipchev-support-nan-and-infnity branch from 1e1b827 to ef4ab07 Compare April 28, 2024 19:41
@lipchev
Copy link
Contributor

lipchev commented Apr 29, 2024

I've just pushed a PR (#51) with some minor changes. (replaced one TODO with another 😄 )

@danm-de
Copy link
Owner Author

danm-de commented Apr 29, 2024

I've just pushed a PR (#51) with some minor changes. (replaced one TODO with another 😄 )

Merged.

@danm-de danm-de merged commit 4e3957c into master Apr 29, 2024
2 checks passed
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