KO
|
EN
gitlite — search
Search
#python
#hacktoberfest
#android
#nodejs
#python3
#flutter
#javascript
#php
#deep-learning
#ios
#machine-learning
#ui
float16
★ 43
Open GitHub ↗
half float library for C and for z80
Download README (.md)
Explore Similar Repositories
z80-macroasm-vscode
:
Support for Z80 macro-assemblers in Visual Studio Code
ArduZ80
:
The first Z80 emulation library for Arduino
Nestor80
:
A Z80, R800 and Z280 assembler+linker compatible with MACRO-80, written in C#
z80asm-vscode
:
Z80 Assembly support for Visual Studio Code
Forth850
:
A fast Forth 2012 Standard system written in Z80 assembly for SHARP PC-G850 pocket computers. Plus new fast Z80 IEEE754 math libraries.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
float16
?
Download (.md)
# Half Float IEEE Library for C and Z80 This is a library that implements IEEE 16 bit half float in - C - general purpose code - Z80 - assembly as useful high performance floating point library for 8bit systems It supports: - Basic operations "+", "-", "\*", "/" - Conversion to/from integer - Comparison operations 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: - math functions: log/exp, trigonometry etc, - formatting/parsing functions ## Z80 notes - All functions are reentrant and relay on alternative set of registers AF', HL', DE', BC', so if your interrupt routines use shadow registers for fast context switching you can't use this library. - Some functions is IX for frame pointer, IY is not modified. - Each functions come in two variants the z88dk C calling format and using registers, for example `_f16_add` with parameters passed over stack and `_f6_add_hl_de` that the parameters passed via hl and de, and result returned in hl