artyom-beilis / float16

half float library for C and for z80
MIT License
34 stars 7 forks source link
c float16 half-precision z80 z80asm zx-spectrum

Half Float IEEE Library for C and Z80

This is a library that implements IEEE 16 bit half float in

It supports:

It uses IEEE 754 format. It supports full range of values including +/- inf, nan and subnormal values. All operations work as expected with the respect of inf/nan values

Only simplest truncation rounding policy implemented, no round to nearest ties to evens provided.

What is expected in future:

Z80 notes