Division operation
UDIV
Advanced unsigned division with encrypted divisor.
Signature
| Raw symbols | FHE16_UDIV |
|---|---|
| Example | int32_t* rem = NULL; int32_t* q = FHE16_UDIV(a, b, &rem); |
Caller
Advanced unsigned division with encrypted divisor.
Circuit Path
Homomorphic pathNon-restoring division over encrypted operands.
Input, Output, Ownership
| Output | Unsigned quotient ciphertext and optional remainder output. |
|---|---|
| Ownership | Quotient and returned remainder are caller-owned. |
| Implementation baseline | FHE16Ver6/include/soAPI/soAPI.hpp and FHE16Ver6/src/soAPI/soAPI.cpp |
C Example
int32_t* rem = NULL; int32_t* q = FHE16_UDIV(a, b, &rem);
FHE16_Free(out);