~d-ci/libmemcached/pushtest

« back to all changes in this revision

Viewing changes to libmemcached/byteorder.cc

  • Committer: Continuous Integration
  • Date: 2013-01-28 22:54:43 UTC
  • mfrom: (1098.1.1 1.2)
  • Revision ID: ci@tangent.org-20130128225443-acu5o9wpr5nhjqob
Merge lp:~tangent-org/libmemcached/1.2-build/ Build: jenkins-Libmemcached-217

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
  /* Little endian, flip the bytes around until someone makes a faster/better
47
47
   * way to do this. */
48
48
  uint64_t rv= 0;
49
 
  for (uint8_t x= 0; x < 8; x++)
 
49
  for (uint8_t x= 0; x < 8; ++x)
50
50
  {
51
51
    rv= (rv << 8) | (in & 0xff);
52
52
    in >>= 8;