Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
CpuArch.h File Reference
#include "7zTypes.h"

Go to the source code of this file.

Macros

#define MY_CPU_pragma_pack_push_1   _Pragma("pack(push, 1)")
 
#define MY_CPU_pragma_pop   _Pragma("pack(pop)")
 
#define Z7_has_builtin(x)
 
#define Z7_BSWAP32_CONST(v)
 
#define Z7_BSWAP16(v)
 
#define Z7_BSWAP32(v)
 
#define Z7_BSWAP64(v)
 
#define GetUi16(p)
 
#define GetUi32(p)
 
#define SetUi16(p, v)
 
#define SetUi32(p, v)
 
#define GetUi64(p)
 
#define SetUi64(p, v)
 
#define GetBe32(p)
 
#define SetBe32(p, v)
 
#define GetBe64(p)
 
#define GetBe16(p)
 

Macro Definition Documentation

◆ GetBe16

#define GetBe16 ( p)
Value:
( (UInt16) ( \
((UInt16)((const Byte *)(p))[0] << 8) | \
((const Byte *)(p))[1] ))
unsigned short UInt16
Definition bzlib_private.h:47
unsigned char Byte
Definition zconf.h:391

◆ GetBe32

#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] )
unsigned int UInt32
Definition bzlib_private.h:45

◆ GetBe64

#define GetBe64 ( p)
Value:
(((UInt64)GetBe32(p) << 32) | GetBe32(((const Byte *)(p)) + 4))
unsigned long long int UInt64
Definition 7zTypes.h:234
#define GetBe32(p)
Definition CpuArch.h:529

◆ GetUi16

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

◆ GetUi32

#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))

◆ GetUi64

#define GetUi64 ( p)
Value:
(GetUi32(p) | ((UInt64)GetUi32(((const Byte *)(p)) + 4) << 32))
#define GetUi32(p)
Definition CpuArch.h:480

◆ MY_CPU_pragma_pack_push_1

#define MY_CPU_pragma_pack_push_1   _Pragma("pack(push, 1)")

◆ MY_CPU_pragma_pop

#define MY_CPU_pragma_pop   _Pragma("pack(pop)")

◆ SetBe32

#define SetBe32 ( p,
v )
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_; }

◆ SetUi16

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

◆ SetUi32

#define SetUi32 ( p,
v )
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); }

◆ SetUi64

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

◆ Z7_BSWAP16

#define Z7_BSWAP16 ( v)
Value:
((UInt16) \
( ((UInt32)(v) << 8) \
| ((UInt32)(v) >> 8) \
))

◆ Z7_BSWAP32

#define Z7_BSWAP32 ( v)
Value:
#define Z7_BSWAP32_CONST(v)
Definition CpuArch.h:350

◆ Z7_BSWAP32_CONST

#define Z7_BSWAP32_CONST ( v)
Value:
( (((UInt32)(v) << 24) ) \
| (((UInt32)(v) << 8) & (UInt32)0xff0000) \
| (((UInt32)(v) >> 8) & (UInt32)0xff00 ) \
| (((UInt32)(v) >> 24) ))

◆ Z7_BSWAP64

#define Z7_BSWAP64 ( v)
Value:
( ( ( (UInt64)(v) ) << 8 * 7 ) \
| ( ( (UInt64)(v) & ((UInt32)0xff << 8 * 1) ) << 8 * 5 ) \
| ( ( (UInt64)(v) & ((UInt32)0xff << 8 * 2) ) << 8 * 3 ) \
| ( ( (UInt64)(v) & ((UInt32)0xff << 8 * 3) ) << 8 * 1 ) \
| ( ( (UInt64)(v) >> 8 * 1 ) & ((UInt32)0xff << 8 * 3) ) \
| ( ( (UInt64)(v) >> 8 * 3 ) & ((UInt32)0xff << 8 * 2) ) \
| ( ( (UInt64)(v) >> 8 * 5 ) & ((UInt32)0xff << 8 * 1) ) \
| ( ( (UInt64)(v) >> 8 * 7 ) ) \
)

◆ Z7_has_builtin

#define Z7_has_builtin ( x)
Value:
0