signbit.go 144 B

123456
  1. package math32
  2. // Signbit returns true if x is negative or negative zero.
  3. func Signbit(x float32) bool {
  4. return Float32bits(x)&(1<<31) != 0
  5. }