Skip to content

Commit

Permalink
Fix the RV64 and LA64 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
tannergooding committed May 10, 2024
1 parent 30dc925 commit dee7289
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/libraries/System.Private.CoreLib/src/System/Math.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1198,7 +1198,7 @@ public static double MinMagnitude(double x, double y)
[Intrinsic]
public static double ReciprocalEstimate(double d)
{
#if MONO
#if MONO || TARGET_RISCV64 || TARGET_LOONGARCH64
return 1.0 / d;
#else
return ReciprocalEstimate(d);
Expand All @@ -1215,7 +1215,7 @@ public static double ReciprocalEstimate(double d)
[Intrinsic]
public static double ReciprocalSqrtEstimate(double d)
{
#if MONO
#if MONO || TARGET_RISCV64 || TARGET_LOONGARCH64
return 1.0 / Sqrt(d);
#else
return ReciprocalSqrtEstimate(d);
Expand Down
4 changes: 2 additions & 2 deletions src/libraries/System.Private.CoreLib/src/System/MathF.cs
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ public static float MinMagnitude(float x, float y)
[Intrinsic]
public static float ReciprocalEstimate(float x)
{
#if MONO
#if MONO || TARGET_RISCV64 || TARGET_LOONGARCH64
return 1.0f / x;
#else
return ReciprocalEstimate(x);
Expand All @@ -334,7 +334,7 @@ public static float ReciprocalEstimate(float x)
[Intrinsic]
public static float ReciprocalSqrtEstimate(float x)
{
#if MONO
#if MONO || TARGET_RISCV64 || TARGET_LOONGARCH64
return 1.0f / Sqrt(x);
#else
return ReciprocalSqrtEstimate(x);
Expand Down

0 comments on commit dee7289

Please sign in to comment.