nginx/src/core/ngx_crc32.h


/*
 * Copyright (C) Igor Sysoev
 * Copyright (C) Nginx, Inc.
 */


#ifndef _NGX_CRC32_H_INCLUDED_
#define _NGX_CRC32_H_INCLUDED_


#include <ngx_config.h>
#include <ngx_core.h>


extern uint32_t  *ngx_crc32_table_short;
extern uint32_t   ngx_crc32_table256[];


static ngx_inline uint32_t
ngx_crc32_short(u_char *p, size_t len)
{}


static ngx_inline uint32_t
ngx_crc32_long(u_char *p, size_t len)
{}


#define ngx_crc32_init(crc)


static ngx_inline void
ngx_crc32_update(uint32_t *crc, u_char *p, size_t len)
{}


#define ngx_crc32_final(crc)


ngx_int_t ngx_crc32_table_init(void);


#endif /* _NGX_CRC32_H_INCLUDED_ */