projects
/
sfpy.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
the beginnings of posit interface
[sfpy.git]
/
posit.pyx
1
cimport cposit
2
3
cdef class Posit8:
4
cdef cposit.posit8_t _c_posit
5
6
def __cinit__(self):
7
self._c_posit = cposit.i64_to_p8(1)
8
9
cpdef show(self):
10
print(cposit.p8_to_i64(self._c_posit))
11