[libre-riscv-dev] [Bug 146] create python bindings to reference FP implementation
bugzilla-daemon at libre-riscv.org
bugzilla-daemon at libre-riscv.org
Tue Oct 15 02:21:00 BST 2019
http://bugs.libre-riscv.org/show_bug.cgi?id=146
--- Comment #1 from Jacob Lifshay <programmerjake at gmail.com> ---
I have WIP bindings to the algebraics crate already written (python-support
branch of algebraics repo), just need to finish writing tests, resolve issues
with PyLong <-> BigInt conversion in PyO3, and may need to wait on PyO3
releasing a new version.
PyLong <-> BigInt conversion:
https://github.com/PyO3/pyo3/pull/622#issuecomment-541866678
We will need to write bindings to the FP emulation library written on top of
algebraics.
As mentioned on mailing list, I think we should have different bindings to
avoid needing global variables for rounding mode, exceptions, and similar. I'm
thinking we add a FPEnv object that holds all of that and all the FP number
objects have a reference to the FPEnv object. That way, we can avoid needing to
pass the FPEnv to all the operations, we only need to pass it to the operations
that produce a FP number without any FP numbers as input (mostly type
conversions from integer or bits).
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the libre-riscv-dev
mailing list