-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Faster Math.Max/Min on arm64 #65584
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
Faster Math.Max/Min on arm64 #65584
Conversation
|
Tagging subscribers to this area: @dotnet/area-system-numerics Issue DetailsAn issue from twitter Math.Max/Min do a lot of stuff for floating point, e.g.: Let's see if this passes our tests around edge cases values (e.g.
|
Co-authored-by: Adeel Mujahid <3840695+am11@users.noreply.github.com>
Co-authored-by: Tanner Gooding <tagoo@outlook.com>
Co-authored-by: Tanner Gooding <tagoo@outlook.com>
|
@tannergooding Thanks, addressed your feedback |

Math.MaxandMath.Mindo a lot of stuff forfloatanddoubleto match IEEE754:2018 maximum/minimum. But we can at least rely on ARM's fmin/fmax, e.g.:Current codegen on arm64 (I am using R2R):
New codegen: