Operations

This document outlines the GPU operations supported in TFHE-rs.

The GPU backend includes the following operations for both signed and unsigned encrypted integers:

name

symbol

Enc/Enc

Enc/ Int

-

✔️

N/A

+

✔️

✔️

-

✔️

✔️

*

✔️

✔️

/

✔️

✔️

%

✔️

✔️

!

✔️

N/A

&

✔️

✔️

|

✔️

✔️

^

✔️

✔️

>>

✔️

✔️

<<

✔️

✔️

rotate_right

✔️

✔️

rotate_left

✔️

✔️

min

✔️

✔️

max

✔️

✔️

gt

✔️

✔️

ge

✔️

✔️

lt

✔️

✔️

le

✔️

✔️

eq

✔️

✔️

ne

✔️

✔️

cast_into

✔️

N/A

cast_from

✔️

N/A

select

✔️

✖️

ilog2

✔️

N/A

leading_zeros

✔️

N/A

leading_ones

✔️

N/A

All operations follow the same syntax as the one described in here.

Last updated

Was this helpful?