Re:Beating Floating Point at Its Own Game: Posit Arithmetic ...
by dnautics on Saturday July 01, 2017 @12:45AM
(#14675430)
bfp uses C++ classes which store the format hyperparameters as fields. If you'd rather a C/C++ library memory layout which reflects the bitwidth of the particular posit:
https://github.com/Etaphase/FastSigmoids.jl
contains both a julia library and a C/C++ library. Posits are implemented as a C type and a C++ class where the type and class sizes correspond to the bitwidth.
Re:Beating Floating Point at Its Own Game: Posit Arithmetic ...
by libcg on Saturday July 01, 2017 @11:02PM
(#14680632)
Dev here, I'm planning to transition to a C library with fixed size posit implementations. I need all the help I can get :)
FastSigmoids uses float and double types which would be problematic in embedded environments.
Re:Beating Floating Point at Its Own Game: Posit Arithmetic ...
by dnautics on Sunday July 02, 2017 @02:57AM
(#14681256)
Shoot me a message. I am planning on making a bitwise/intmath implementation in C. Things might be accelerated if you know someone interested in sponsoring it.
Re:Beating Floating Point at Its Own Game: Posit Arithmetic ...
by akkartik on Friday June 30, 2017 @11:25PM
(#14675191)
Thanks! Can you elaborate on what's missing?
Re:Beating Floating Point at Its Own Game: Posit Arithmetic ...
by libcg on Saturday July 01, 2017 @11:08PM
(#14680646)
Conversion from/to float and double, multiplication, division and reciprocation are implemented and should be working properly.
The next big TODOs are addition, substraction and rounding. Then advanced operations like sqrt, fma, etc. As part of the posit spec.
I've been working alone on that project, this being my first time working with floating point representation. I'm happy I could even get to that stage, and I hope someone can pick up my work and start contributing.
https://github.com/libcg/bfp