Evince
Evince is a document viewer capable of displaying multiple and single page document formats like PDF and Postscript.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
CpuArch.h File Reference
#include "7zTypes.h"
+ Include dependency graph for CpuArch.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GetUi16(p)
 
#define GetUi32(p)
 
#define GetUi64(p)   (GetUi32(p) | ((UInt64)GetUi32(((const Byte *)(p)) + 4) << 32))
 
#define SetUi16(p, v)
 
#define SetUi32(p, v)
 
#define SetUi64(p, v)
 
#define GetBe32(p)
 
#define GetBe64(p)   (((UInt64)GetBe32(p) << 32) | GetBe32(((const Byte *)(p)) + 4))
 
#define SetBe32(p, v)
 
#define GetBe16(p)
 

Macro Definition Documentation

#define GetBe16 (   p)
Value:
( (UInt16) ( \
((UInt16)((const Byte *)(p))[0] << 8) | \
((const Byte *)(p))[1] ))

Definition at line 280 of file CpuArch.h.

#define GetBe32 (   p)
Value:
( \
((UInt32)((const Byte *)(p))[0] << 24) | \
((UInt32)((const Byte *)(p))[1] << 16) | \
((UInt32)((const Byte *)(p))[2] << 8) | \
((const Byte *)(p))[3] )

Definition at line 263 of file CpuArch.h.

#define GetBe64 (   p)    (((UInt64)GetBe32(p) << 32) | GetBe32(((const Byte *)(p)) + 4))

Definition at line 269 of file CpuArch.h.

#define GetUi16 (   p)
Value:
( (UInt16) ( \
((const Byte *)(p))[0] | \
((UInt16)((const Byte *)(p))[1] << 8) ))

Definition at line 212 of file CpuArch.h.

#define GetUi32 (   p)
Value:
( \
((const Byte *)(p))[0] | \
((UInt32)((const Byte *)(p))[1] << 8) | \
((UInt32)((const Byte *)(p))[2] << 16) | \
((UInt32)((const Byte *)(p))[3] << 24))

Definition at line 216 of file CpuArch.h.

#define GetUi64 (   p)    (GetUi32(p) | ((UInt64)GetUi32(((const Byte *)(p)) + 4) << 32))

Definition at line 222 of file CpuArch.h.

#define SetBe32 (   p,
 
)
Value:
{ Byte *_ppp_ = (Byte *)(p); UInt32 _vvv_ = (v); \
_ppp_[0] = (Byte)(_vvv_ >> 24); \
_ppp_[1] = (Byte)(_vvv_ >> 16); \
_ppp_[2] = (Byte)(_vvv_ >> 8); \
_ppp_[3] = (Byte)_vvv_; }

Definition at line 271 of file CpuArch.h.

#define SetUi16 (   p,
 
)
Value:
{ Byte *_ppp_ = (Byte *)(p); UInt32 _vvv_ = (v); \
_ppp_[0] = (Byte)_vvv_; \
_ppp_[1] = (Byte)(_vvv_ >> 8); }

Definition at line 224 of file CpuArch.h.

#define SetUi32 (   p,
 
)
Value:
{ Byte *_ppp_ = (Byte *)(p); UInt32 _vvv_ = (v); \
_ppp_[0] = (Byte)_vvv_; \
_ppp_[1] = (Byte)(_vvv_ >> 8); \
_ppp_[2] = (Byte)(_vvv_ >> 16); \
_ppp_[3] = (Byte)(_vvv_ >> 24); }

Definition at line 228 of file CpuArch.h.

#define SetUi64 (   p,
 
)
Value:
{ Byte *_ppp2_ = (Byte *)(p); UInt64 _vvv2_ = (v); \
SetUi32(_ppp2_ , (UInt32)_vvv2_); \
SetUi32(_ppp2_ + 4, (UInt32)(_vvv2_ >> 32)); }

Definition at line 234 of file CpuArch.h.