RetroArch
Macros | Functions
adler32.c File Reference
#include <stdint.h>
#include <stddef.h>
#include <compat/zutil.h>
Include dependency graph for adler32.c:

Macros

#define ZLIB_INTERNAL
 
#define BASE   65521UL /* largest prime smaller than 65536 */
 
#define NMAX   5552
 
#define DO1(buf, i)   {s1 += buf[i]; s2 += s1;}
 
#define DO2(buf, i)   DO1(buf,i); DO1(buf,i+1);
 
#define DO4(buf, i)   DO2(buf,i); DO2(buf,i+2);
 
#define DO8(buf, i)   DO4(buf,i); DO4(buf,i+4);
 
#define DO16(buf)   DO8(buf,0); DO8(buf,8);
 
#define MOD(a)   a %= BASE
 

Functions

uint32_t adler32 (uint32_t adler, const uint8_t *buf, size_t len)
 

Macro Definition Documentation

◆ BASE

#define BASE   65521UL /* largest prime smaller than 65536 */

◆ DO1

#define DO1 (   buf,
 
)    {s1 += buf[i]; s2 += s1;}

◆ DO16

#define DO16 (   buf)    DO8(buf,0); DO8(buf,8);

◆ DO2

#define DO2 (   buf,
 
)    DO1(buf,i); DO1(buf,i+1);

◆ DO4

#define DO4 (   buf,
 
)    DO2(buf,i); DO2(buf,i+2);

◆ DO8

#define DO8 (   buf,
 
)    DO4(buf,i); DO4(buf,i+4);

◆ MOD

#define MOD (   a)    a %= BASE

◆ NMAX

#define NMAX   5552

◆ ZLIB_INTERNAL

#define ZLIB_INTERNAL

Function Documentation

◆ adler32()

uint32_t adler32 ( uint32_t  adler,
const uint8_t buf,
size_t  len 
)
Here is the call graph for this function:
Here is the caller graph for this function: