(x constant.Value)
| 250 | } |
| 251 | |
| 252 | func roundFloat32(x constant.Value) constant.Value { |
| 253 | f32, _ := constant.Float32Val(x) |
| 254 | f := float64(f32) |
| 255 | if !math.IsInf(f, 0) { |
| 256 | return constant.MakeFloat64(f) |
| 257 | } |
| 258 | return nil |
| 259 | } |
| 260 | |
| 261 | func fitsFloat64(x constant.Value) bool { |
| 262 | f, _ := constant.Float64Val(x) |
no outgoing calls
no test coverage detected