raw
ffa_ch3_shifts.kv       1 ------------------------------------------------------------------------------
ffa_ch3_shifts.kv 2 ------------------------------------------------------------------------------
ffa_ch3_shifts.kv 3 -- This file is part of 'Finite Field Arithmetic', aka 'FFA'. --
ffa_ch3_shifts.kv 4 -- --
ffa_ch3_shifts.kv 5 -- (C) 2017 Stanislav Datskovskiy ( www.loper-os.org ) --
ffa_ch3_shifts.kv 6 -- http://wot.deedbot.org/17215D118B7239507FAFED98B98228A001ABFFC7.html --
ffa_ch3_shifts.kv 7 -- --
ffa_ch3_shifts.kv 8 -- You do not have, nor can you ever acquire the right to use, copy or --
ffa_ch3_shifts.kv 9 -- distribute this software ; Should you use this software for any purpose, --
ffa_ch3_shifts.kv 10 -- or copy and distribute it to anyone or in any manner, you are breaking --
ffa_ch3_shifts.kv 11 -- the laws of whatever soi-disant jurisdiction, and you promise to --
ffa_ch3_shifts.kv 12 -- continue doing so for the indefinite future. In any case, please --
ffa_ch3_shifts.kv 13 -- always : read and understand any software ; verify any PGP signatures --
ffa_ch3_shifts.kv 14 -- that you use - for any purpose. --
ffa_ch3_shifts.kv 15 -- --
ffa_ch3_shifts.kv 16 -- See also http://trilema.com/2015/a-new-software-licensing-paradigm . --
ffa_ch3_shifts.kv 17 ------------------------------------------------------------------------------
ffa_ch3_shifts.kv 18 ------------------------------------------------------------------------------
ffa_ch3_shifts.kv 19
ffa_ch11_tuning_a... 20 with Words; use Words;
ffa_ch2_logicals.kv 21 with FZ_Type; use FZ_Type;
ffa_ch2_logicals.kv 22
ffa_ch2_logicals.kv 23
ffa_ch2_logicals.kv 24 package FZ_Basic is
ffa_ch2_logicals.kv 25
ffa_ch2_logicals.kv 26 pragma Pure;
ffa_ch2_logicals.kv 27
ffa_ch5_egypt.kv 28 -- Determine the Bitness of N
ffa_ch5_egypt.kv 29 function FZ_Bitness(N : in FZ) return Bit_Count;
ffa_ch11_tuning_a... 30 pragma Inline_Always(FZ_Bitness);
ffa_ch5_egypt.kv 31
ffa_ch13_measure_... 32 -- Determine the Bitness of the given FZ's Length
ffa_ch13_measure_... 33 function FZ_Bitness_Log2(N : in FZ) return Positive;
ffa_ch13_measure_... 34 pragma Inline_Always(FZ_Bitness_Log2);
ffa_ch13_measure_... 35
ffa_ch2_logicals.kv 36 -- N := 0
ffa_ch2_logicals.kv 37 procedure FZ_Clear(N : out FZ);
ffa_ch11_tuning_a... 38 pragma Inline_Always(FZ_Clear);
ffa_ch2_logicals.kv 39
ffa_ch4_ffacalc.kv 40 -- Set given FZ to a given truth value
ffa_ch4_ffacalc.kv 41 procedure WBool_To_FZ(V : in WBool; N : out FZ);
ffa_ch11_tuning_a... 42 pragma Inline_Always(WBool_To_FZ);
ffa_ch4_ffacalc.kv 43
ffa_ch2_logicals.kv 44 -- First word of N := Source
ffa_ch2_logicals.kv 45 procedure FZ_Set_Head(N : out FZ; Source : in Word);
ffa_ch11_tuning_a... 46 pragma Inline_Always(FZ_Set_Head);
ffa_ch2_logicals.kv 47
ffa_ch2_logicals.kv 48 -- First word of N
ffa_ch2_logicals.kv 49 function FZ_Get_Head(N : in FZ) return Word;
ffa_ch11_tuning_a... 50 pragma Inline_Always(FZ_Get_Head);
ffa_ch2_logicals.kv 51
ffa_ch2_logicals.kv 52 -- Exchange X and Y
ffa_ch2_logicals.kv 53 procedure FZ_Swap(X : in out FZ; Y : in out FZ);
ffa_ch11_tuning_a... 54 pragma Inline_Always(FZ_Swap);
ffa_ch2_logicals.kv 55
ffa_ch2_logicals.kv 56 -- Constant-time MUX: Sel = 0: Result := X; Sel = 1: Result := Y
ffa_ch2_logicals.kv 57 procedure FZ_Mux(X : in FZ; Y : in FZ; Result : out FZ; Sel : in WBool);
ffa_ch11_tuning_a... 58 pragma Inline_Always(FZ_Mux);
ffa_ch2_logicals.kv 59
ffa_ch2_logicals.kv 60 end FZ_Basic;