dotnet/runtime

ARM/ARM64 returns an incorrect result for `pow(x, 1)`

Open

#12.139 aperta il 27 feb 2019

Vedi su GitHub
 (7 commenti) (0 reazioni) (0 assegnatari)C# (5445 fork)batch import
Priority:3arch-arm32arch-arm64area-System.Numericsbughelp wanted

Metriche repository

Star
 (17.886 star)
Metriche merge PR
 (Merge medio 12g 11h) (661 PR mergiate in 30 g)

Descrizione

ARM/ARM64 currently return 0 for Math.Pow(double.Epsilon, 1) when it should be returning double.Epsilon. My best guess is that the implementation is not properly special casing y=1.

category:correctness theme:jit-intrinsics skill-level:beginner cost:small

Guida contributor