Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
14
Task/CRC-32/Ada/crc-32.ada
Normal file
14
Task/CRC-32/Ada/crc-32.ada
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
with Ada.Text_IO; use Ada.Text_IO;
|
||||
with GNAT.CRC32; use GNAT.CRC32;
|
||||
with Interfaces; use Interfaces;
|
||||
procedure TestCRC is
|
||||
package IIO is new Ada.Text_IO.Modular_IO (Unsigned_32);
|
||||
crc : CRC32;
|
||||
num : Unsigned_32;
|
||||
str : String := "The quick brown fox jumps over the lazy dog";
|
||||
begin
|
||||
Initialize (crc);
|
||||
Update (crc, str);
|
||||
num := Get_Value (crc);
|
||||
IIO.Put (num, Base => 16); New_Line;
|
||||
end TestCRC;
|
||||
Loading…
Add table
Add a link
Reference in a new issue