Arithmetic operations (promoted to float32)
(other Float16)
| 294 | // Arithmetic operations (promoted to float32) |
| 295 | |
| 296 | func (f Float16) Add(other Float16) Float16 { |
| 297 | return Float16FromFloat32(f.Float32() + other.Float32()) |
| 298 | } |
| 299 | |
| 300 | func (f Float16) Sub(other Float16) Float16 { |
| 301 | return Float16FromFloat32(f.Float32() - other.Float32()) |