v0.1.0 #1
tochinet
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is the first release of the Posit8 and Posit16 library for Arduino.
It supports 8-bit and 16-bit Posits, with a variable size of exponent for the Posit 8 (0, 1 or 2)
Creation of posit is possible from raw value (unsigned byte or int), float or double.
The four usual operations are supported ( + _ * / ), with operator overloading.
No support for Posit32, Quire, dotproducts, comparison functions, functions of one argument, conversion between formats etc.
There are several deviations from the Posit standard for the sake of simplicity and limited usage of program and memory.
While poisit arithmetic should never overflow nor underflow, the library will round down to zero for results below a defined EPSILON value, set to 1ppm (1E-6) by default for Posit8 and EPSILON^2 (1E-12) for Posit16.
This discussion was created from the release v0.1.0.
Beta Was this translation helpful? Give feedback.
All reactions