waLLLnutFHE16 Docs

Division operation

SDIV_CONST

Signed division by fixed plaintext divisor.

Signature

Raw symbolsFHE16_SDIV_CONST
Exampleint32_t* out = FHE16_SDIV_CONST(a, -10);

Caller

Signed division by fixed plaintext divisor.

Circuit Path

Homomorphic pathABS, unsigned constant division, NEG, and SELECT by sign.

Input, Output, Ownership

OutputSigned quotient ciphertext.
OwnershipReturned ciphertext is caller-owned.
Implementation baselineFHE16Ver6/include/soAPI/soAPI.hpp and FHE16Ver6/src/soAPI/soAPI.cpp

C Example

int32_t* out = FHE16_SDIV_CONST(a, -10);
FHE16_Free(out);