~ubuntu-branches/ubuntu/wily/libsereal-encoder-perl/wily

« back to all changes in this revision

Viewing changes to snappy/csnappy_compress.c

  • Committer: Package Import Robot
  • Author(s): gregor herrmann
  • Date: 2014-10-20 18:26:33 UTC
  • mfrom: (17.1.5 sid)
  • Revision ID: package-import@ubuntu.com-20141020182633-ojroz2634vd16lqf
Tags: 3.003-1
* Team upload.
* New upstream release.
* Bump versioned build dependency on libsereal-decoder-perl.
* Set SEREAL_USE_BUNDLED_LIBS=1 in debian/rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
441
441
static INLINE uint32_t GetUint32AtOffset(uint64_t v, int offset) {
442
442
        DCHECK_GE(offset, 0);
443
443
        DCHECK_LE(offset, 4);
444
 
#ifdef __LITTLE_ENDIAN
 
444
#if __BYTE_ORDER == __LITTLE_ENDIAN
445
445
        return v >> (8 * offset);
446
446
#else
447
447
        return v >> (32 - 8 * offset);