(d float32)
| 106 | } |
| 107 | |
| 108 | func EncodeFloat16(d float32) scode.Bytes { |
| 109 | var b [2]byte |
| 110 | return AppendFloat16(b[:0], d) |
| 111 | } |
| 112 | |
| 113 | func DecodeFloat16(zb scode.Bytes) float32 { |
| 114 | return float16.Frombits(binary.LittleEndian.Uint16(zb)).Float32() |
no test coverage detected