Better codegen / perf form Math.Max and Math.Min (#33851)
authorGünther Foidl <gue@korporal.at>
Tue, 14 Apr 2020 14:58:39 +0000 (16:58 +0200)
committerGitHub <noreply@github.com>
Tue, 14 Apr 2020 14:58:39 +0000 (07:58 -0700)
commit7b5b7f10fb6a79b9e4e293550fe11e6f261704f9
tree138451c4eae52927a5dc52109a446fe8e006b6cf
parentdda0a5701ef6a3a4e66b223695016c2260c617e0
Better codegen / perf form Math.Max and Math.Min (#33851)

* Forced inline of Math.Min/Max double/float

* Math.Min split in fast and slow

* Math.Min another try

* Added more tests to Math

* Picked variant "MinReorder"
src/libraries/System.Private.CoreLib/src/System/Math.cs
src/libraries/System.Runtime.Extensions/tests/System/Math.cs