adler32.c File Reference
#include "config.h"
#include "adler32.h"
#include "common.h"
#include "intreadwrite.h"
Include dependency graph for adler32.c:

Go to the source code of this file.

Macros

#define BASE   65521L /* largest prime smaller than 65536 */
 
#define DO1(buf)   { s1 += *buf++; s2 += s1; }
 
#define DO4(buf)   DO1(buf); DO1(buf); DO1(buf); DO1(buf);
 
#define DO16(buf)   DO4(buf); DO4(buf); DO4(buf); DO4(buf);
 

Functions

unsigned long av_adler32_update (unsigned long adler, const uint8_t *buf, unsigned int len)
 Calculate the Adler32 checksum of a buffer. More...
 

Macro Definition Documentation

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

Definition at line 29 of file adler32.c.

Referenced by av_adler32_update().

#define DO1 (   buf)    { s1 += *buf++; s2 += s1; }

Definition at line 31 of file adler32.c.

Referenced by av_adler32_update().

#define DO16 (   buf)    DO4(buf); DO4(buf); DO4(buf); DO4(buf);

Definition at line 33 of file adler32.c.

#define DO4 (   buf)    DO1(buf); DO1(buf); DO1(buf); DO1(buf);

Definition at line 32 of file adler32.c.

Referenced by av_adler32_update().