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

Side by Side Diff: xz/src/liblzma/check/crc_macros.h

Issue 2869016: Add an unpatched version of xz, XZ Utils, to /trunk/deps/third_party (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/
Patch Set: Created 10 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « xz/src/liblzma/check/crc64_x86.S ('k') | xz/src/liblzma/check/sha256.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 ///////////////////////////////////////////////////////////////////////////////
2 //
3 /// \file crc_macros.h
4 /// \brief Some endian-dependent macros for CRC32 and CRC64
5 //
6 // Author: Lasse Collin
7 //
8 // This file has been put into the public domain.
9 // You can do whatever you want with this file.
10 //
11 ///////////////////////////////////////////////////////////////////////////////
12
13 #ifdef WORDS_BIGENDIAN
14 # define A(x) ((x) >> 24)
15 # define B(x) (((x) >> 16) & 0xFF)
16 # define C(x) (((x) >> 8) & 0xFF)
17 # define D(x) ((x) & 0xFF)
18
19 # define S8(x) ((x) << 8)
20 # define S32(x) ((x) << 32)
21
22 #else
23 # define A(x) ((x) & 0xFF)
24 # define B(x) (((x) >> 8) & 0xFF)
25 # define C(x) (((x) >> 16) & 0xFF)
26 # define D(x) ((x) >> 24)
27
28 # define S8(x) ((x) >> 8)
29 # define S32(x) ((x) >> 32)
30 #endif
OLDNEW
« no previous file with comments | « xz/src/liblzma/check/crc64_x86.S ('k') | xz/src/liblzma/check/sha256.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698