File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ public byte[] IT_Bytes_CRC32()
6565 [ Benchmark ]
6666 public uint IO_UInt32_XXH32 ( ) => System . IO . Hashing . XxHash32 . HashToUInt32 ( _bytes ) ;
6767
68- #if NET6_0
68+ #if NET6_0_OR_GREATER
6969
7070 [ Benchmark ]
7171 public ulong ST_UInt32_XXH32 ( ) => Standart . Hash . xxHash . xxHash32 . ComputeHash ( _bytes ) ;
@@ -94,7 +94,7 @@ public byte[] IT_Bytes_XXH32()
9494 [ Benchmark ]
9595 public ulong IO_UInt64_XXH64 ( ) => System . IO . Hashing . XxHash64 . HashToUInt64 ( _bytes ) ;
9696
97- #if NET6_0
97+ #if NET6_0_OR_GREATER
9898
9999 [ Benchmark ]
100100 public ulong ST_UInt64_XXH64 ( ) => Standart . Hash . xxHash . xxHash64 . ComputeHash ( _bytes ) ;
@@ -120,7 +120,7 @@ public byte[] IT_Bytes_XXH64()
120120 [ Benchmark ]
121121 public ulong IO_UInt64_XXH3 ( ) => System . IO . Hashing . XxHash3 . HashToUInt64 ( _bytes ) ;
122122
123- #if NET6_0
123+ #if NET6_0_OR_GREATER
124124
125125 [ Benchmark ]
126126 public ulong ST_UInt64_XXH3 ( ) => Standart . Hash . xxHash . xxHash3 . ComputeHash ( _bytes , _bytes . Length ) ;
Original file line number Diff line number Diff line change 2121 <ProjectReference Include =" ..\IT.Hashing\IT.Hashing.csproj" />
2222 </ItemGroup >
2323
24- <ItemGroup Condition =" '$(TargetFramework)' == 'net6.0'" >
25- <PackageReference Include =" Standart.Hash.xxHash" >
26- <Version >4.0.5</Version >
27- </PackageReference >
28- </ItemGroup >
29-
30- <ItemGroup Condition =" '$(TargetFramework)' == 'net7.0'" >
24+ <ItemGroup Condition =" '$(TargetFramework)' == 'net8.0'" >
3125 <PackageReference Include =" Standart.Hash.xxHash" >
3226 <Version >4.0.5</Version >
3327 </PackageReference >
Original file line number Diff line number Diff line change 2020
2121if ( ! bench . IO_Bytes_XXH64 ( ) . SequenceEqual ( bench . IT_Bytes_XXH64 ( ) ) ) throw new InvalidOperationException ( ) ;
2222
23- #if NET6_0
23+ #if NET6_0_OR_GREATER
2424if ( bench . ST_UInt32_XXH32 ( ) != bench . IO_UInt32_XXH32 ( ) ) throw new InvalidOperationException ( ) ;
2525
2626if ( bench . ST_UInt64_XXH64 ( ) != bench . IO_UInt64_XXH64 ( ) ) throw new InvalidOperationException ( ) ;
You can’t perform that action at this time.
0 commit comments