Arithmetic operation
NEG
Signed arithmetic helpers, division, modulo, and product correction paths.
Signature
| Raw symbols | FHE16_NEG |
|---|---|
| Example | int32_t* out = FHE16_NEG(a); |
Caller
Signed arithmetic helpers, division, modulo, and product correction paths.
Circuit Path
Homomorphic pathTwo's-complement negation via FHE16_ADD_POWTWO_TEMPLETE.
Input, Output, Ownership
| Output | n-bit integer ciphertext. |
|---|---|
| Ownership | Returned ciphertext is caller-owned. |
| Implementation baseline | FHE16Ver6/include/soAPI/soAPI.hpp and FHE16Ver6/src/soAPI/soAPI.cpp |
C Example
int32_t* out = FHE16_NEG(a);
FHE16_Free(out);