Home | History | Annotate | Download | only in runtime

Lines Matching refs:float64

14 // turn uint64 op into float64 op
15 func fop(f func(x, y uint64) uint64) func(x, y float64) float64 {
16 return func(x, y float64) float64 {
23 func add(x, y float64) float64 { return x + y }
24 func sub(x, y float64) float64 { return x - y }
25 func mul(x, y float64) float64 { return x * y }
26 func div(x, y float64) float64 { return x / y }
29 base := []float64{
73 all := make([]float64, 200)
88 func trunc32(f float64) float64 {
89 return float64(float32(f))
93 func to32sw(f float64) float64 {
94 return float64(math.Float32frombits(F64to32(math.Float64bits(f))))
98 func to64sw(f float64) float64 {
102 // float64 -hw-> int64 -hw-> float64
103 func hwint64(f float64) float64 {
104 return float64(int64(f))
107 // float64 -hw-> int32 -hw-> float64
108 func hwint32(f float64) float64 {
109 return float64(int32(f))
112 // float64 -sw-> int64 -hw-> float64
113 func toint64sw(f float64) float64 {
120 return float64(i)
123 // float64 -hw-> int64 -sw-> float64
124 func fromint64sw(f float64) float64 {
142 func test(t *testing.T, op string, hw, sw func(float64, float64) float64, all []float64) {
162 func testu(t *testing.T, op string, hw, sw func(float64) float64, v float64) {
170 func hwcmp(f, g float64) (cmp int, isnan bool) {
182 func testcmp(t *testing.T, f, g float64) {
190 func same(f, g float64) bool {