with Words; use Words;
with FZ_Type; use FZ_Type;


package FZ_Basic is
   
   pragma Pure;
   
   -- N := 0
   procedure FZ_Clear(N : out FZ);
   
   -- First word of N := Source
   procedure FZ_Set_Head(N : out FZ; Source : in Word);
   
   -- First word of N
   function FZ_Get_Head(N : in FZ) return Word;
   
   -- Exchange X and Y
   procedure FZ_Swap(X : in out FZ; Y : in out FZ);
   pragma Precondition(X'Length = Y'Length);
   
   -- Constant-time MUX: Sel = 0: Result := X; Sel = 1: Result := Y
   procedure FZ_Mux(X : in FZ; Y : in FZ; Result : out FZ; Sel : in WBool);
   pragma Precondition(X'Length = Y'Length and X'Length = Result'Length);
   
end FZ_Basic;
