-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
[NativeAOT] Rounding helpers use wrong rounding algorithm #97922
Comments
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas Issue DetailsRhpFltRound/RhpDblRound are implemented using Unfortunately,
|
RhpFltRound/RhpDblRound are implemented using
round
/roundf
. That's incorrect, since .NET default is round to even. Similar issue was recently fixed in NativeAOT-LLVM.Unfortunately,
roundeven
/roundevenf
methods are only available in C23 standard. They are implemented on glibc 2.25+ (current .NET requirement is 2.23) and missing on Bionic/MUSL libc. CoreCLR uses a custom implementation which can presumably be reused.The text was updated successfully, but these errors were encountered: