Skip to content

Commit bea2591

Browse files
authored
Merge pull request #98 from dtpfl/main
use shared function, cleanup
2 parents e8c7e85 + 1334df1 commit bea2591

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

entries/dtoepfl/src/dtpfl_1brc.dpr

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,15 @@ uses
1111
System.TimeSpan,
1212
System.Generics.Collections,
1313
System.Diagnostics,
14-
generate.console in '..\..\..\generator\Common\generate.console.pas';
14+
generate.console in '..\..\..\generator\Common\generate.console.pas',
15+
Baseline.Common in '..\..\..\Baseline\Common\Baseline.Common.pas';
1516

1617
type TAlgorithm = (v1, v2, Count);
1718
var algorithm: TAlgorithm;
1819
FormatSettings: TFormatSettings;
1920
const paramPrefix = '--';
2021
paramPrefixShort = '-';
2122

22-
function Ceiling(const ANumber: Double): integer;
23-
begin
24-
Result := Trunc(ANumber) + Ord(Frac(ANumber) > 0);
25-
end;
26-
27-
function RoundExDouble(const ATemp: Double): Double;
28-
var
29-
tmp: Double;
30-
begin
31-
tmp:= ATemp * 10;
32-
Result := Ceiling(tmp) / 10;
33-
end;
34-
3523
{$REGION 'v1'}
3624

3725
type TStationEntry = record

entries/dtoepfl/src/dtpfl_1brc.dproj

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<ProjectVersion>19.5</ProjectVersion>
55
<FrameworkType>None</FrameworkType>
66
<Base>True</Base>
7-
<Config Condition="'$(Config)'==''">Release</Config>
7+
<Config Condition="'$(Config)'==''">Debug</Config>
88
<Platform Condition="'$(Platform)'==''">Win64</Platform>
99
<TargetedPlatforms>3</TargetedPlatforms>
1010
<AppType>Console</AppType>
@@ -161,6 +161,7 @@
161161
<MainSource>MainSource</MainSource>
162162
</DelphiCompile>
163163
<DCCReference Include="..\..\..\generator\Common\generate.console.pas"/>
164+
<DCCReference Include="..\..\..\Baseline\Common\Baseline.Common.pas"/>
164165
<BuildConfiguration Include="Base">
165166
<Key>Base</Key>
166167
</BuildConfiguration>

0 commit comments

Comments
 (0)