Arithmetic operation
ADD
SDK arithmetic calls, product compute flows, benchmarks that need same-width encrypted addition.
Signature
| Raw symbols | FHE16_ADD |
|---|---|
| Example | int32_t* out = FHE16_ADD(a, b); |
Caller
SDK arithmetic calls, product compute flows, benchmarks that need same-width encrypted addition.
Circuit Path
Homomorphic pathParallel prefix adder through FHE16_PREFIX_Templete with subtract=false, executed by PrefixAdder_V2 worker threads.
Input, Output, Ownership
| Output | n-bit integer ciphertext. |
|---|---|
| Ownership | Returned ciphertext is caller-owned and must be released with FHE16_Free. |
| Implementation baseline | FHE16Ver6/include/soAPI/soAPI.hpp and FHE16Ver6/src/soAPI/soAPI.cpp |
C Example
int32_t* out = FHE16_ADD(a, b);
FHE16_Free(out);