|
|
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: 730 (0x2da)
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⟧
--
-- This program measures the time required for the adding of the
-- elements of a large floating point vector
--
with Instrument;
use Instrument;
procedure Vfada1 is
Vector_Size : constant Positive := 1000;
type Vector is array (1 .. Vector_Size) of Float;
V1, V2 : Vector := (others => 0.000_001);
Vector_Result : Vector := (others => 0.0);
begin
Start ("VFADA1", "Vector floating pt. addition (control)");
for I in 1 .. 1000 loop
-- Add vector elements
for N in Vector'Range loop
-- vector_result (n) := v1(n) + v2(n); -- included in test version
Vector_Result (N) := Float (Ident_Int (N));
end loop;
end loop;
Stop;
end Vfada1;