chromium/third_party/unrar/src/rawint.hpp

#ifndef _RAR_RAWINT_
#define _RAR_RAWINT_

#define rotls(x,n,xsize)
#define rotrs(x,n,xsize)
#define rotl32(x,n)
#define rotr32(x,n)

inline uint RawGet2(const void *Data)
{}


inline uint32 RawGet4(const void *Data)
{}


inline uint64 RawGet8(const void *Data)
{}


inline void RawPut2(uint Field,void *Data)
{}


inline void RawPut4(uint Field,void *Data)
{}


inline void RawPut8(uint64 Field,void *Data)
{}


#if defined(LITTLE_ENDIAN) && defined(ALLOW_MISALIGNED)
#define USE_MEM_BYTESWAP
#endif

// Load 4 big endian bytes from memory and return uint32.
inline uint32 RawGetBE4(const byte *m)
{}


// Load 8 big endian bytes from memory and return uint64.
inline uint64 RawGetBE8(const byte *m)
{}


// Save integer to memory as big endian.
inline void RawPutBE4(uint i,byte *mem)
{}


// Save integer to memory as big endian.
inline void RawPutBE8(uint64 i,byte *mem)
{}


inline uint32 ByteSwap32(uint32 i)
{}




inline bool IsPow2(uint64 n) // Check if 'n' is power of 2.
{}


inline uint64 GetGreaterOrEqualPow2(uint64 n)
{}


inline uint64 GetLessOrEqualPow2(uint64 n)
{}
#endif