Skip to content

optimized float to integer routines #600

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

Merged
merged 2 commits into from
May 8, 2025
Merged

optimized float to integer routines #600

merged 2 commits into from
May 8, 2025

Conversation

ZERICO2005
Copy link
Contributor

@ZERICO2005 ZERICO2005 commented May 7, 2025

Due to undefined behavior for out of range results, dtol and dtoul can be merged to be the exact same routine. Same applies for dtoll and dtoull.

I also undid the splitting of ftoll and ftoull. As ftoll already correctly handles all non-UB cases for both (long long)float and (unsigned long long)float to begin with.

@mateoconlechuga
Copy link
Member

I do not like how you are replacing the soft float routines like this.

@mateoconlechuga mateoconlechuga merged commit d54b9ee into master May 8, 2025
9 checks passed
@mateoconlechuga mateoconlechuga deleted the f64_int_cast branch May 8, 2025 06:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants