Data update

This commit is contained in:
Ingy döt Net 2025-08-11 18:05:26 -07:00
parent 4d5544505c
commit 4924dd0264
3073 changed files with 55820 additions and 4408 deletions

View file

@ -0,0 +1,10 @@
with Ada.Text_IO;
procedure Twos_Complement is
type Number is mod 2 ** 32;
A : constant Number := 42;
B : constant Number := not A + 1;
Is_Negative : constant Boolean := A + B = 0;
begin
Ada.Text_IO.Put_Line ("B = -A is " & Is_Negative'Image);
end Twos_Complement;