unrarsrc  6.1.7
About: unrar extracts, views and tests the contents of archives created with the RAR archiver.
  Fossies Dox: unrarsrc-6.1.7.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

rawint.hpp File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define rotls(x, n, xsize)   (((x)<<(n)) | ((x)>>(xsize-(n))))
 
#define rotrs(x, n, xsize)   (((x)>>(n)) | ((x)<<(xsize-(n))))
 
#define rotl32(x, n)   rotls(x,n,32)
 
#define rotr32(x, n)   rotrs(x,n,32)
 

Functions

uint RawGet2 (const void *Data)
 
uint32 RawGet4 (const void *Data)
 
uint64 RawGet8 (const void *Data)
 
void RawPut2 (uint Field, void *Data)
 
void RawPut4 (uint32 Field, void *Data)
 
void RawPut8 (uint64 Field, void *Data)
 
uint32 RawGetBE4 (const byte *m)
 
void RawPutBE4 (uint32 i, byte *mem)
 
uint32 ByteSwap32 (uint32 i)
 

Macro Definition Documentation

◆ rotl32

#define rotl32 (   x,
 
)    rotls(x,n,32)

Definition at line 6 of file rawint.hpp.

◆ rotls

#define rotls (   x,
  n,
  xsize 
)    (((x)<<(n)) | ((x)>>(xsize-(n))))

Definition at line 4 of file rawint.hpp.

◆ rotr32

#define rotr32 (   x,
 
)    rotrs(x,n,32)

Definition at line 7 of file rawint.hpp.

◆ rotrs

#define rotrs (   x,
  n,
  xsize 
)    (((x)>>(n)) | ((x)<<(xsize-(n))))

Definition at line 5 of file rawint.hpp.

Function Documentation

◆ ByteSwap32()

uint32 ByteSwap32 ( uint32  i)
inline

Definition at line 111 of file rawint.hpp.

References rotl32.

◆ RawGet2()

uint RawGet2 ( const void *  Data)
inline

Definition at line 9 of file rawint.hpp.

◆ RawGet4()

◆ RawGet8()

uint64 RawGet8 ( const void *  Data)
inline

Definition at line 27 of file rawint.hpp.

References INT32TO64, and RawGet4().

◆ RawGetBE4()

uint32 RawGetBE4 ( const byte m)
inline

Definition at line 83 of file rawint.hpp.

Referenced by sha256_transform().

◆ RawPut2()

void RawPut2 ( uint  Field,
void *  Data 
)
inline

Definition at line 38 of file rawint.hpp.

◆ RawPut4()

◆ RawPut8()

void RawPut8 ( uint64  Field,
void *  Data 
)
inline

Definition at line 60 of file rawint.hpp.

◆ RawPutBE4()

void RawPutBE4 ( uint32  i,
byte mem 
)
inline

Definition at line 96 of file rawint.hpp.

Referenced by sha1_done(), and sha256_done().