waLLLnutFHE16 Docs

Arithmetic operation

ABS

Signed division, signed modulo, scoring, and range normalization.

Signature

Raw symbolsFHE16_ABS
Exampleint32_t* out = FHE16_ABS(a);

Caller

Signed division, signed modulo, scoring, and range normalization.

Circuit Path

Homomorphic pathPrefixABS path over encrypted sign and magnitude bits.

Input, Output, Ownership

Outputn-bit absolute-value ciphertext.
OwnershipReturned ciphertext is caller-owned.
Implementation baselineFHE16Ver6/include/soAPI/soAPI.hpp and FHE16Ver6/src/soAPI/soAPI.cpp

C Example

int32_t* out = FHE16_ABS(a);
FHE16_Free(out);