dotnet/runtime

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

クローズ

#12,139 opened on 2019/02/27

 (7 件のコメント) (0 件のリアクション) (0 人の担当者)C# (5,445 件のフォーク)batch import
Priority:3arch-arm32arch-arm64area-System.Numericsbughelp wanted

Repository metrics

Stars
 (17,886 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド