raw
ffa_ch4_ffacalc         1 ------------------------------------------------------------------------------
ffa_ch4_ffacalc 2 ------------------------------------------------------------------------------
ffa_ch4_ffacalc 3 -- This file is part of 'Finite Field Arithmetic', aka 'FFA'. --
ffa_ch4_ffacalc 4 -- --
ffa_ch4_ffacalc 5 -- (C) 2017 Stanislav Datskovskiy ( www.loper-os.org ) --
ffa_ch4_ffacalc 6 -- http://wot.deedbot.org/17215D118B7239507FAFED98B98228A001ABFFC7.html --
ffa_ch4_ffacalc 7 -- --
ffa_ch4_ffacalc 8 -- You do not have, nor can you ever acquire the right to use, copy or --
ffa_ch4_ffacalc 9 -- distribute this software ; Should you use this software for any purpose, --
ffa_ch4_ffacalc 10 -- or copy and distribute it to anyone or in any manner, you are breaking --
ffa_ch4_ffacalc 11 -- the laws of whatever soi-disant jurisdiction, and you promise to --
ffa_ch4_ffacalc 12 -- continue doing so for the indefinite future. In any case, please --
ffa_ch4_ffacalc 13 -- always : read and understand any software ; verify any PGP signatures --
ffa_ch4_ffacalc 14 -- that you use - for any purpose. --
ffa_ch4_ffacalc 15 -- --
ffa_ch4_ffacalc 16 -- See also http://trilema.com/2015/a-new-software-licensing-paradigm . --
ffa_ch4_ffacalc 17 ------------------------------------------------------------------------------
ffa_ch4_ffacalc 18 ------------------------------------------------------------------------------
ffa_ch4_ffacalc 19
ffa_ch4_ffacalc 20 with Words; use Words;
ffa_ch4_ffacalc 21 with FZ_Type; use FZ_Type;
ffa_ch4_ffacalc 22
ffa_ch4_ffacalc 23 package FFA_IO is
ffa_ch4_ffacalc 24
ffa_ch4_ffacalc 25 -- Character representation of a Word
ffa_ch4_ffacalc 26 type WChars is array(1 .. 2 * Byteness) of Character;
ffa_ch4_ffacalc 27
ffa_ch4_ffacalc 28 -- Obtain the WChars corresponding to the given Word
ffa_ch4_ffacalc 29 function W_To_WChars(N : Word) return WChars;
ffa_ch4_ffacalc 30
ffa_ch4_ffacalc 31 -- Display a hex representation of W to stdout
ffa_ch4_ffacalc 32 procedure Dump(W : in Word);
ffa_ch4_ffacalc 33
ffa_ch4_ffacalc 34 -- Display a hex representation of N to stdout
ffa_ch4_ffacalc 35 procedure Dump(N : in FZ);
ffa_ch4_ffacalc 36
ffa_ch4_ffacalc 37 end FFA_IO;