go/src/runtime/softfloat64_test.go

// turn uint64 op into float64 op
func fop(f func(x, y uint64) uint64) func(x, y float64) float64 {}

func add(x, y float64) float64 {}

func sub(x, y float64) float64 {}

func mul(x, y float64) float64 {}

func div(x, y float64) float64 {}

func TestFloat64(t *testing.T) {}

// 64 -hw-> 32 -hw-> 64
func trunc32(f float64) float64 {}

// 64 -sw->32 -hw-> 64
func to32sw(f float64) float64 {}

// 64 -hw->32 -sw-> 64
func to64sw(f float64) float64 {}

// float64 -hw-> int64 -hw-> float64
func hwint64(f float64) float64 {}

// float64 -hw-> int32 -hw-> float64
func hwint32(f float64) float64 {}

// float64 -sw-> int64 -hw-> float64
func toint64sw(f float64) float64 {}

// float64 -hw-> int64 -sw-> float64
func fromint64sw(f float64) float64 {}

var nerr

func err(t *testing.T, format string, args ...any) {}

func test(t *testing.T, op string, hw, sw func(float64, float64) float64, all []float64) {}

func testu(t *testing.T, op string, hw, sw func(float64) float64, v float64) {}

func hwcmp(f, g float64) (cmp int, isnan bool) {}

func testcmp(t *testing.T, f, g float64) {}

func same(f, g float64) bool {}