Division operation
SMOD_CONST
Signed modulo by fixed plaintext divisor.
Signature
| Raw symbols | FHE16_SMOD_CONST |
|---|---|
| Example | int32_t* out = FHE16_SMOD_CONST(a, 10); |
Caller
Signed modulo by fixed plaintext divisor.
Circuit Path
Homomorphic pathSigned quotient path plus multiply/subtract remainder path.
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_CONST(a, 10);
FHE16_Free(out);