~ubuntu-branches/ubuntu/maverick/clamav/maverick-backports

« back to all changes in this revision

Viewing changes to libclamav/7z/7zCrc.h

  • Committer: Bazaar Package Importer
  • Author(s): Stephen Gran, Stephen Gran, Michael Tautschnig
  • Date: 2010-04-26 21:41:18 UTC
  • mfrom: (2.1.6 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100426214118-i6lo606wnh7ywfj6
Tags: 0.96+dfsg-4
[ Stephen Gran ]
* Fixed typo in clamav-milter's postinst

[ Michael Tautschnig ]
* Fixed typo in clamav-freshclam's postinst (closes: #579271)
* Debconf translation updates
  - Portuguese (closes: #579068)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* 7zCrc.h -- CRC32 calculation
 
2
2008-03-13
 
3
Igor Pavlov
 
4
Public domain */
 
5
 
 
6
#ifndef __7Z_CRC_H
 
7
#define __7Z_CRC_H
 
8
 
 
9
#include <stddef.h>
 
10
 
 
11
#include "Types.h"
 
12
 
 
13
extern const UInt32 g_CrcTable[];
 
14
 
 
15
void MY_FAST_CALL CrcGenerateTable(void);
 
16
 
 
17
#define CRC_INIT_VAL 0xFFFFFFFF
 
18
#define CRC_GET_DIGEST(crc) ((crc) ^ 0xFFFFFFFF)
 
19
#define CRC_UPDATE_BYTE(crc, b) (g_CrcTable[((crc) ^ (b)) & 0xFF] ^ ((crc) >> 8))
 
20
 
 
21
UInt32 MY_FAST_CALL CrcUpdate(UInt32 crc, const void *data, size_t size);
 
22
UInt32 MY_FAST_CALL CrcCalc(const void *data, size_t size);
 
23
 
 
24
#endif