File: signbit.go

package info (click to toggle)
golang-github-chewxy-math32 1.11.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 460 kB
  • sloc: asm: 388; makefile: 4
file content (6 lines) | stat: -rw-r--r-- 144 bytes parent folder | download
1
2
3
4
5
6
package math32

// Signbit returns true if x is negative or negative zero.
func Signbit(x float32) bool {
	return Float32bits(x)&(1<<31) != 0
}