Skip to content

Conversation

@ZERICO2005
Copy link
Contributor

ldexpf/scalbnf now correctly handles/rounds subnormal inputs/outputs.

Since Ti's floats don't support negative zero, ldexpf also has a __ldexpf_avoid_negative_zero option (set to 1 currently), which guarantees that negative zero is only returned if the input is negative zero.

@ZERICO2005
Copy link
Contributor Author

I suppose this implementation of ldexpf is fine for now. Later on we could use ez80sf routines to speedup the handling of subnormal values.

@ZERICO2005 ZERICO2005 marked this pull request as ready for review September 13, 2025 20:52
@adriweb
Copy link
Member

adriweb commented Sep 26, 2025

Good job on the many tests, i'm going to merge that trusting those

@adriweb adriweb merged commit 5c31b2f into master Sep 26, 2025
9 checks passed
@adriweb adriweb deleted the subnormal_ldexpf branch September 26, 2025 07:02
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