projects
/
sfpy.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
3bbeabfb7279d15d0fb804d448d769f3e0d04f50
[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