waLLLnutFHE16 Docs

Division operation

UDIV

Advanced unsigned division with encrypted divisor.

Signature

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

OutputUnsigned quotient ciphertext and optional remainder output.
OwnershipQuotient and returned remainder are caller-owned.
Implementation baselineFHE16Ver6/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);