(x constant.Value)
| 264 | } |
| 265 | |
| 266 | func roundFloat64(x constant.Value) constant.Value { |
| 267 | f, _ := constant.Float64Val(x) |
| 268 | if !math.IsInf(f, 0) { |
| 269 | return constant.MakeFloat64(f) |
| 270 | } |
| 271 | return nil |
| 272 | } |
| 273 | |
| 274 | // representableConst reports whether x can be represented as |
| 275 | // value of the given basic type and for the configuration |
no outgoing calls
no test coverage detected