Visualization Library 2.0.0-b5

A lightweight C++ OpenGL middleware for 2D/3D graphics

VL     Star     Watch     Fork     Issue

[Download] [Tutorials] [All Classes] [Grouped Classes]
Macros | Functions
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 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);
 

Functions

 ZEXPORT (uLong)
 

Macro Definition Documentation

◆ BASE

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

Definition at line 10 of file adler32.c.

Referenced by ZEXPORT().

◆ DO1

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

Definition at line 14 of file adler32.c.

◆ DO16

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

Definition at line 18 of file adler32.c.

Referenced by ZEXPORT().

◆ DO2

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

Definition at line 15 of file adler32.c.

◆ DO4

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

Definition at line 16 of file adler32.c.

◆ DO8

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

Definition at line 17 of file adler32.c.

◆ NMAX

#define NMAX   5552

Definition at line 11 of file adler32.c.

Referenced by ZEXPORT().

Function Documentation

◆ ZEXPORT()

ZEXPORT ( uLong  )

Definition at line 21 of file adler32.c.

References BASE, DO16, NMAX, s1, s2, and Z_NULL.