Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: third_party/lzma/v4_65/files/C/7zCrc.h

Issue 624713003: Keep only base/extractor.[cc|h]. (Closed) Base URL: https://chromium.googlesource.com/external/omaha.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/lzma/v4_65/files/C/7zBuf2.c ('k') | third_party/lzma/v4_65/files/C/7zCrc.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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 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
OLDNEW
« no previous file with comments | « third_party/lzma/v4_65/files/C/7zBuf2.c ('k') | third_party/lzma/v4_65/files/C/7zCrc.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698