zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
adler32.c File Reference
#include "zlib.h"

Go to the source code of this file.

Macros

#define BASE   65521L /* largest prime smaller than 65536 */
 
#define DO1(buf, i)   {s1 += buf[i]; s2 += s1;}
 
#define DO16(buf)   DO8(buf,0); DO8(buf,8);
 
#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 NMAX   5552
 

Functions

 ZEXPORT (uLong)
 

Macro Definition Documentation

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

Definition at line 10 of file adler32.c.

Referenced by ZEXPORT().

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

Definition at line 14 of file adler32.c.

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

Definition at line 18 of file adler32.c.

Referenced by ZEXPORT().

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

Definition at line 15 of file adler32.c.

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

Definition at line 16 of file adler32.c.

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

Definition at line 17 of file adler32.c.

#define NMAX   5552

Definition at line 11 of file adler32.c.

Referenced by ZEXPORT().

Function Documentation

ZEXPORT ( uLong  )

Definition at line 21 of file adler32.c.

References BASE, DO16, k, NMAX, and Z_NULL.