Add NEON implementation of Adler32.

This commit is contained in:
2021-09-29 01:21:30 +01:00
parent f083a8ece4
commit 0f90f7c967
3 changed files with 233 additions and 0 deletions

View File

@@ -31,6 +31,7 @@
// ****************************************************************************/
using System.IO;
using System.Runtime.Intrinsics.Arm;
using System.Runtime.Intrinsics.X86;
using System.Text;
using Aaru.CommonTypes.Interfaces;
@@ -96,6 +97,13 @@ namespace Aaru6.Checksums
return;
}
if(AdvSimd.IsSupported)
{
neon.Step(ref preSum1, ref preSum2, data, len);
return;
}
uint sum1 = preSum1;
uint sum2 = preSum2;
uint n;