Skip to content

optimized float to integer routines#600

Merged
mateoconlechuga merged 2 commits into
masterfrom
f64_int_cast
May 8, 2025
Merged

optimized float to integer routines#600
mateoconlechuga merged 2 commits into
masterfrom
f64_int_cast

Conversation

@ZERICO2005

@ZERICO2005 ZERICO2005 commented May 7, 2025

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Collaborator

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
@ZERICO2005 ZERICO2005 added the crt label Feb 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants