-
+ 095AFD026948C5A102C32A9B442D3D4A1F721A59396B90B40479EADD243C6C66E362698749A500DE2784445860CB7B6B1B38FA5C1D07F4C86D742E40C7FAC36D
ffa/libffa/fz_qshft.ads
(0 . 0)(1 . 52)
737 ------------------------------------------------------------------------------
738 ------------------------------------------------------------------------------
739 -- This file is part of 'Finite Field Arithmetic', aka 'FFA'. --
740 -- --
741 -- (C) 2018 Stanislav Datskovskiy ( www.loper-os.org ) --
742 -- http://wot.deedbot.org/17215D118B7239507FAFED98B98228A001ABFFC7.html --
743 -- --
744 -- You do not have, nor can you ever acquire the right to use, copy or --
745 -- distribute this software ; Should you use this software for any purpose, --
746 -- or copy and distribute it to anyone or in any manner, you are breaking --
747 -- the laws of whatever soi-disant jurisdiction, and you promise to --
748 -- continue doing so for the indefinite future. In any case, please --
749 -- always : read and understand any software ; verify any PGP signatures --
750 -- that you use - for any purpose. --
751 -- --
752 -- See also http://trilema.com/2015/a-new-software-licensing-paradigm . --
753 ------------------------------------------------------------------------------
754 ------------------------------------------------------------------------------
755
756 with Words; use Words;
757 with FZ_Type; use FZ_Type;
758
759
760 package FZ_QShft is
761
762 pragma Pure;
763
764 -- Constant-time subword shift, for where there is no barrel shifter
765 procedure FZ_Quiet_ShiftRight_SubW_Soft(N : in FZ;
766 ShiftedN : in out FZ;
767 Count : in WBit_Index);
768 pragma Inline_Always(FZ_Quiet_ShiftRight_SubW_Soft);
769
770 -- Constant-time subword shift, for where there is no barrel shifter
771 procedure FZ_Quiet_ShiftLeft_SubW_Soft(N : in FZ;
772 ShiftedN : in out FZ;
773 Count : in WBit_Index);
774 pragma Inline_Always(FZ_Quiet_ShiftLeft_SubW_Soft);
775
776 -- Constant-time arbitrary right-shift.
777 procedure FZ_Quiet_ShiftRight(N : in FZ;
778 ShiftedN : in out FZ;
779 Count : in FZBit_Index);
780 pragma Inline_Always(FZ_Quiet_ShiftRight);
781
782 -- Constant-time arbitrary left-shift.
783 procedure FZ_Quiet_ShiftLeft(N : in FZ;
784 ShiftedN : in out FZ;
785 Count : in FZBit_Index);
786 pragma Inline_Always(FZ_Quiet_ShiftLeft);
787
788 end FZ_QShft;