mirror of
https://github.com/make-42/xyosc
synced 2025-01-19 19:17:35 +01:00
7 lines
144 B
Go
7 lines
144 B
Go
package math32
|
|
|
|
// Signbit returns true if x is negative or negative zero.
|
|
func Signbit(x float32) bool {
|
|
return Float32bits(x)&(1<<31) != 0
|
|
}
|