waLLLnutFHE16 Docs

Shift operation

SHR

Unsigned right shift and division-by-power-of-two workflows.

Signature

Raw symbolsFHE16_SHR, FHE16_LSHIFTR
Exampleint32_t* out = FHE16_SHR(a, 2);

Caller

Unsigned right shift and division-by-power-of-two workflows.

Circuit Path

Homomorphic pathMetadata/data copy; no bootstrap-heavy evaluation for normal logical shift.

Input, Output, Ownership

OutputShifted ciphertext with reduced bit width.
OwnershipReturned ciphertext is caller-owned.
Implementation baselineFHE16Ver6/include/soAPI/soAPI.hpp and FHE16Ver6/src/soAPI/soAPI.cpp

C Example

int32_t* out = FHE16_SHR(a, 2);
FHE16_Free(out);