dotnet/runtime

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

Open

#12,139 opened on Feb 27, 2019

View on GitHub
 (7 comments) (0 reactions) (0 assignees)C# (5,445 forks)batch import
Priority:3arch-arm32arch-arm64area-System.Numericsbughelp wanted

Repository metrics

Stars
 (17,886 stars)
PR merge metrics
 (Avg merge 12d 11h) (661 merged PRs in 30d)

Description

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

Contributor guide