ReactOS 0.4.16-dev-106-g10b08aa
crc32c.c File Reference
#include "crc32c.h"
#include <stdint.h>
#include <stdbool.h>
#include <sal.h>
Include dependency graph for crc32c.c:

Go to the source code of this file.

Functions

uint32_t __stdcall calc_crc32c_sw (_In_ uint32_t seed, _In_reads_bytes_(msglen) uint8_t *msg, _In_ uint32_t msglen)
 

Variables

crc_func calc_crc32c = calc_crc32c_sw
 
const uint32_t crctable []
 

Function Documentation

◆ calc_crc32c_sw()

uint32_t __stdcall calc_crc32c_sw ( _In_ uint32_t  seed,
_In_reads_bytes_(msglen) uint8_t msg,
_In_ uint32_t  msglen 
)

Definition at line 62 of file crc32c.c.

62 {
63 uint32_t rem = seed;
64
65 for (uint32_t i = 0; i < msglen; i++) {
66 rem = crctable[(rem ^ msg[i]) & 0xff] ^ (rem >> 8);
67 }
68
69 return rem;
70}
#define msg(x)
Definition: auth_time.c:54
const uint32_t crctable[]
Definition: crc32c.c:25
UINT32 uint32_t
Definition: types.h:75
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248

Variable Documentation

◆ calc_crc32c

◆ crctable

const uint32_t crctable[]

Definition at line 25 of file crc32c.c.

Referenced by calc_crc32c_sw().