Division operation
SDIV
Advanced signed division with encrypted divisor.
Signature
| Raw symbols | FHE16_SDIV |
|---|---|
| Example | int32_t* rem = NULL; int32_t* zero = NULL; int32_t* q = FHE16_SDIV(a, b, &rem, &zero); |
Caller
Advanced signed division with encrypted divisor.
Circuit Path
Homomorphic pathSign extraction, absolute-value division, sign correction, and optional zero flag.
Input, Output, Ownership
| Output | Signed quotient, optional remainder, optional zero flag. |
|---|---|
| Ownership | Each returned pointer is caller-owned. |
| Implementation baseline | FHE16Ver6/include/soAPI/soAPI.hpp and FHE16Ver6/src/soAPI/soAPI.cpp |
C Example
int32_t* rem = NULL; int32_t* zero = NULL; int32_t* q = FHE16_SDIV(a, b, &rem, &zero);
FHE16_Free(out);