mirror of
https://github.com/aaru-dps/Aaru.Checksums.Native.git
synced 2025-12-16 11:14:29 +00:00
Add documentation.
This commit is contained in:
@@ -39,6 +39,17 @@
|
||||
#include "library.h"
|
||||
#include "adler32.h"
|
||||
|
||||
|
||||
/**
|
||||
* @brief Calculate Adler-32 checksum for a given data using SSSE3 instructions.
|
||||
*
|
||||
* This function calculates the Adler-32 checksum for a block of data using SSSE3 vector instructions.
|
||||
*
|
||||
* @param sum1 Pointer to the variable where the first 16-bit checksum value is stored.
|
||||
* @param sum2 Pointer to the variable where the second 16-bit checksum value is stored.
|
||||
* @param data Pointer to the data buffer.
|
||||
* @param len Length of the data buffer in bytes.
|
||||
*/
|
||||
AARU_EXPORT SSSE3 void AARU_CALL adler32_ssse3(uint16_t* sum1, uint16_t* sum2, const uint8_t* data, long len)
|
||||
{
|
||||
uint32_t s1 = *sum1;
|
||||
|
||||
Reference in New Issue
Block a user