waLLLnutFHE16 Docs

Division operation

SDIV

Advanced signed division with encrypted divisor.

Signature

Raw symbolsFHE16_SDIV
Exampleint32_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

OutputSigned quotient, optional remainder, optional zero flag.
OwnershipEach returned pointer is caller-owned.
Implementation baselineFHE16Ver6/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);