Skip to content

Commit 3e10ce5

Browse files
committed
chore: remove deadcode path in Pow2
1 parent cb36494 commit 3e10ce5

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/FixedMathSharp/Core/FixedTrigonometry.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,6 @@ public static Fixed64 Pow2(Fixed64 x)
101101
if (x >= LOG_2_MAX)
102102
return neg ? Fixed64.One / Fixed64.MAX_VALUE : Fixed64.MAX_VALUE;
103103

104-
if (x <= LOG_2_MIN)
105-
return neg ? Fixed64.MAX_VALUE : Fixed64.Zero;
106-
107104
/*
108105
* Taylor series expansion for exp(x)
109106
* From term n, we get term n+1 by multiplying with x/n.
@@ -546,4 +543,4 @@ public static Fixed64 Atan2(Fixed64 y, Fixed64 x)
546543

547544
#endregion
548545
}
549-
}
546+
}

0 commit comments

Comments
 (0)