Get rid of duplicate math.signbit in favor of math.sign_bit
This commit is contained in:
1 parent
6045955c88
commit
ddedddc16d
3 files changed
+3
-29
No files matched your search
Vendored
+2
-2
@@ -831,8 +831,8 @@ fmaxf :: proc "contextless" (x, y: f32) -> f32 {
|
||||
return x
|
||||
}
|
||||
|
||||
if math.signbit(x) != math.signbit(y) {
|
||||
return y if math.signbit(x) else x
|
||||
if math.sign_bit(x) != math.sign_bit(y) {
|
||||
return y if math.sign_bit(x) else x
|
||||
}
|
||||
|
||||
return y if x < y else x
|
||||
|
||||
Reference in new issue
Block a user