X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=README.md;h=df4708e46f2e433aeae787be212df9a9626ed1de;hb=c36eae0bb2f22b3e204f52a8f7fc404495da0dd2;hp=d815eec9a49878fcc903fd6f436ad0d01f204db6;hpb=bbabe0a19c2e72452a33f64f1126b91e20075df8;p=sfpy.git diff --git a/README.md b/README.md index d815eec..df4708e 100644 --- a/README.md +++ b/README.md @@ -1,28 +1,12 @@ # sfpy softfloat and softposit in Python + * support for softfloat float16, float32, and float64 * support for softposit posit8, quire8, posit16, and quire16 - * no softfloat support yet, still WIP + ## Demo ``` ->>> from posit import Posit16, Quire16 ->>> Posit16(1.3) + Posit16(1.4) -Posit16(2.7001953125) ->>> x = Posit16(7) ->>> x -Posit16(1.7881393432617188e-07) ->>> x += Posit16(9) ->>> x -Posit16(4.76837158203125e-07) ->>> q = Quire16() ->>> q.fdp_add(Posit16(11.0), Posit16(2.0)) ->>> q -uA.ui : 29056 -Quire16(22.0) ->>> q.p16 -uA.ui : 29056 -Posit16(22.0) +# WIP ``` + ## Building -The cython module can be built in place in the usual way: -`python setup.py build_ext --inplace` -This requires the submodules to be checked out, and the static library `SoftPosit/build/Linux-x86_64-GCC/softposit.a` to be built. Note that in order for cython to be able to build the shared object for the module, the static library must be compiled with -fPIC, which currently requires modifying the appropriate Makefile manually. +See [BUILDING](BUILDING.md). \ No newline at end of file