Browse Source
Merge branch 'main' into sn/nullable/format_bmp
pull/2345/head
James Jackson-South
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
15 additions and
0 deletions
-
src/ImageSharp/Compression/Zlib/Adler32.cs
-
src/ImageSharp/Compression/Zlib/Crc32.cs
|
|
|
@ -71,6 +71,11 @@ internal static class Adler32 |
|
|
|
return CalculateSse(adler, buffer); |
|
|
|
} |
|
|
|
|
|
|
|
if (AdvSimd.IsSupported) |
|
|
|
{ |
|
|
|
return CalculateArm(adler, buffer); |
|
|
|
} |
|
|
|
|
|
|
|
return CalculateScalar(adler, buffer); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -61,6 +61,16 @@ internal static partial class Crc32 |
|
|
|
return ~CalculateSse(~crc, buffer); |
|
|
|
} |
|
|
|
|
|
|
|
if (ArmCrc32.Arm64.IsSupported) |
|
|
|
{ |
|
|
|
return ~CalculateArm64(~crc, buffer); |
|
|
|
} |
|
|
|
|
|
|
|
if (ArmCrc32.IsSupported) |
|
|
|
{ |
|
|
|
return ~CalculateArm(~crc, buffer); |
|
|
|
} |
|
|
|
|
|
|
|
return ~CalculateScalar(~crc, buffer); |
|
|
|
} |
|
|
|
|
|
|
|
|