|
|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 Tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: B T
Length: 688 (0x2b0)
Types: TextFile
Names: »B«
└─⟦180fe333a⟧ Bits:30000405 8mm tape, Rational 1000, SW CATALOG, 10_20_0
└─⟦180fe333a⟧ Bits:30000537 8mm tape, Rational 1000, SW Catalog 10_20_0
└─⟦5cb1d1d7f⟧ »DATA«
└─⟦3b1ee7bd8⟧
└─⟦this⟧
procedure Sort_Generic (First, Last : Index) is
J : Integer := Index'Pos (First);
Jg : Integer;
Gap : Integer;
begin
Gap := Index'Pos (Last) - Index'Pos (First);
while Gap > 0 loop
for I in Index'Val (Gap) + First .. Last loop
J := Index'Pos (I) - Gap;
while J >= Index'Pos (First) loop
Jg := J + Gap;
if Index'Val (Jg) < Index'Val (J) then
Exchange (Index'Val (J), Index'Val (Jg));
else
exit;
end if;
J := J - Gap;
end loop;
end loop;
Gap := Gap / 2;
end loop;
end Sort_Generic;