1 ------------------------------------------------------------------------------ 2 ------------------------------------------------------------------------------ 3 -- This file is part of 'Finite Field Arithmetic', aka 'FFA'. -- 4 -- -- 5 -- (C) 2018 Stanislav Datskovskiy ( www.loper-os.org ) -- 6 -- http://wot.deedbot.org/17215D118B7239507FAFED98B98228A001ABFFC7.html -- 7 -- -- 8 -- You do not have, nor can you ever acquire the right to use, copy or -- 9 -- distribute this software ; Should you use this software for any purpose, -- 10 -- or copy and distribute it to anyone or in any manner, you are breaking -- 11 -- the laws of whatever soi-disant jurisdiction, and you promise to -- 12 -- continue doing so for the indefinite future. In any case, please -- 13 -- always : read and understand any software ; verify any PGP signatures -- 14 -- that you use - for any purpose. -- 15 -- -- 16 -- See also http://trilema.com/2015/a-new-software-licensing-paradigm . -- 17 ------------------------------------------------------------------------------ 18 ------------------------------------------------------------------------------ 19 20 package Iron is 21 22 pragma Pure; 23 24 -------------------------------------- 25 -------- For a 64-bit system: -------- 26 -------------------------------------- 27 MachineBitness : constant Positive := 64; 28 MachineBitnessLog2 : constant Positive := 6; -- log2(64) 29 -------------------------------------- 30 31 -------------------------------------- 32 -------- For a 32-bit system: -------- 33 -------------------------------------- 34 -- MachineBitness : constant Positive := 32; 35 -- MachineBitnessLog2 : constant Positive := 5; -- log2(32) 36 -------------------------------------- 37 38 -- Bits per Byte 39 ByteBits : constant Positive := 8; 40 41 -- Whether we have a barrel shifter: 42 HaveBarrelShifter : constant Boolean := True; 43 44 end Iron;