package math32 import "math" func Copysign(x, y float32) float32 { const sign = 1 << 31 return math.Float32frombits(math.Float32bits(x)&^sign | math.Float32bits(y)&sign) }