Division operation
SMOD_POW2
Signed modulo by powers of two.
Signature
| Raw symbols | FHE16_SMOD_POW2 |
|---|---|
| Example | int32_t* out = FHE16_SMOD_POW2(a, 3); |
Caller
Signed modulo by powers of two.
Circuit Path
Homomorphic pathSigned pow2 division, shift back, then FHE16_SUB.
Input, Output, Ownership
| Output | Signed remainder ciphertext. |
|---|---|
| Ownership | Returned ciphertext is caller-owned. |
| Implementation baseline | FHE16Ver6/include/soAPI/soAPI.hpp and FHE16Ver6/src/soAPI/soAPI.cpp |
C Example
int32_t* out = FHE16_SMOD_POW2(a, 3);
FHE16_Free(out);