mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-04-20 03:01:31 -04:00
8 lines
180 B
Python
8 lines
180 B
Python
@export
|
|
def a2b(x, res):
|
|
print_ln('x=%s', x.reveal())
|
|
res[:] = sbitvec(x, length=16)
|
|
print_ln('res=%s', x.reveal())
|
|
|
|
a2b(sint(size=10), sbitvec.get_type(16).Array(10))
|