~ubuntu-branches/ubuntu/vivid/unrar-nonfree/vivid

« back to all changes in this revision

Viewing changes to sha256.cpp

  • Committer: Package Import Robot
  • Author(s): Martin Meredith
  • Date: 2015-02-03 12:58:01 UTC
  • mfrom: (1.1.18) (5.1.18 sid)
  • Revision ID: package-import@ubuntu.com-20150203125801-od6ev8cqy1er51vz
Tags: 1:5.2.5-1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
{
54
54
#if defined(_MSC_VER)/* && defined(LITTLE_ENDIAN)*/
55
55
  return _byteswap_ulong(*(uint32 *)b);
 
56
#elif (__GNUC__ > 3) && (__GNUC_MINOR__ > 2)
 
57
  return __builtin_bswap32(*(uint32 *)b);
56
58
#else
57
59
  return uint32(b[0]<<24) | uint32(b[1]<<16) | uint32(b[2]<<8) | b[3];
58
60
#endif