Get rid of duplicate math.signbit in favor of math.sign_bit

This commit is contained in:
Jeroen van Rijn
2025-04-15 16:17:02 +02:00
parent 6045955c88
commit ddedddc16d
3 changed files with 3 additions and 29 deletions
+1 -1
View File
@@ -132,7 +132,7 @@ gamma_f64 :: proc "contextless" (x: f64) -> f64 {
case is_inf(x, 1):
return inf_f64(1)
case x == 0:
if signbit(x) {
if sign_bit(x) {
return inf_f64(-1)
}
return inf_f64(1)