Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 2 additions & 14 deletions entries/dtoepfl/src/dtpfl_1brc.dpr
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,15 @@ uses
System.TimeSpan,
System.Generics.Collections,
System.Diagnostics,
generate.console in '..\..\..\generator\Common\generate.console.pas';
generate.console in '..\..\..\generator\Common\generate.console.pas',
Baseline.Common in '..\..\..\Baseline\Common\Baseline.Common.pas';

type TAlgorithm = (v1, v2, Count);
var algorithm: TAlgorithm;
FormatSettings: TFormatSettings;
const paramPrefix = '--';
paramPrefixShort = '-';

function Ceiling(const ANumber: Double): integer;
begin
Result := Trunc(ANumber) + Ord(Frac(ANumber) > 0);
end;

function RoundExDouble(const ATemp: Double): Double;
var
tmp: Double;
begin
tmp:= ATemp * 10;
Result := Ceiling(tmp) / 10;
end;

{$REGION 'v1'}

type TStationEntry = record
Expand Down
3 changes: 2 additions & 1 deletion entries/dtoepfl/src/dtpfl_1brc.dproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<ProjectVersion>19.5</ProjectVersion>
<FrameworkType>None</FrameworkType>
<Base>True</Base>
<Config Condition="'$(Config)'==''">Release</Config>
<Config Condition="'$(Config)'==''">Debug</Config>
<Platform Condition="'$(Platform)'==''">Win64</Platform>
<TargetedPlatforms>3</TargetedPlatforms>
<AppType>Console</AppType>
Expand Down Expand Up @@ -161,6 +161,7 @@
<MainSource>MainSource</MainSource>
</DelphiCompile>
<DCCReference Include="..\..\..\generator\Common\generate.console.pas"/>
<DCCReference Include="..\..\..\Baseline\Common\Baseline.Common.pas"/>
<BuildConfiguration Include="Base">
<Key>Base</Key>
</BuildConfiguration>
Expand Down