Parolin 0.7.9 6796
Console (soon DLLs) to do a tar like job
Loading...
Searching...
No Matches
SwapBytes.c File Reference
#include "Precomp.h"
#include "Compiler.h"
#include "CpuArch.h"
#include "RotateDefs.h"
#include "SwapBytes.h"

Macros

#define FORCE_SWAP_MODE
 
#define SWAP2_16(i)
 
#define SWAP4_32(i)
 
#define SWAP_BASE_FUNCS_PREFIXES
 
#define SWAP2_32_VAR(v)
 
#define SWAP2_32(i)
 
#define DEFAULT_Swap2   SwapBytes2_32
 
#define DEFAULT_Swap4   SwapBytes4_32
 
#define SWAP_ITERATION_BLOCK_SIZE_MAX   (1 << 7)
 
#define SWAP_VECTOR_ALIGN_SIZE   (1 << 5)
 
#define PRF(x)
 

Typedefs

typedef UInt16 CSwapUInt16
 
typedef UInt32 CSwapUInt32
 

Functions

SWAP_BASE_FUNCS_PREFIXES SwapBytes2_32 (CSwapUInt16 *items, const CSwapUInt16 *lim)
 
SWAP_BASE_FUNCS_PREFIXES SwapBytes4_32 (CSwapUInt32 *items, const CSwapUInt32 *lim)
 
Z7_NO_INLINE void z7_SwapBytes2 (CSwapUInt16 *items, size_t numItems)
 
Z7_NO_INLINE void z7_SwapBytes4 (CSwapUInt32 *items, size_t numItems)
 
void z7_SwapBytesPrepare (void)
 

Macro Definition Documentation

◆ DEFAULT_Swap2

#define DEFAULT_Swap2   SwapBytes2_32

◆ DEFAULT_Swap4

#define DEFAULT_Swap4   SwapBytes4_32

◆ FORCE_SWAP_MODE

#define FORCE_SWAP_MODE

◆ PRF

#define PRF ( x)

◆ SWAP2_16

#define SWAP2_16 ( i)
Value:
{ CSwapUInt16 v = items[i]; items[i] = Z7_BSWAP16(v); }
#define Z7_BSWAP16(v)
Definition CpuArch.h:392
UInt16 CSwapUInt16
Definition SwapBytes.c:11
lzma_index ** i
Definition index.h:629

◆ SWAP2_32

#define SWAP2_32 ( i)
Value:
{ \
UInt32 v = *(const UInt32 *)(const void *)(items + (i) * 2); \
SWAP2_32_VAR(v); \
*(UInt32 *)(void *)(items + (i) * 2) = v; }
unsigned int UInt32
Definition bzlib_private.h:45

◆ SWAP2_32_VAR

#define SWAP2_32_VAR ( v)
Value:
v = ((v & 0xff00ff) << 8) + ((v >> 8) & 0xff00ff);

◆ SWAP4_32

#define SWAP4_32 ( i)
Value:
{ UInt32 v = items[i]; \
v = ((v & 0xff00ff) << 8) + ((v >> 8) & 0xff00ff); \
v = rotlFixed(v, 16); \
items[i] = v; }
#define rotlFixed(x, n)
Definition RotateDefs.h:42

◆ SWAP_BASE_FUNCS_PREFIXES

#define SWAP_BASE_FUNCS_PREFIXES
Value:
Z7_FORCE_INLINE \
static \
Z7_ATTRIB_NO_VECTOR \
#define Z7_FASTCALL
Definition 7zTypes.h:308

◆ SWAP_ITERATION_BLOCK_SIZE_MAX

#define SWAP_ITERATION_BLOCK_SIZE_MAX   (1 << 7)

◆ SWAP_VECTOR_ALIGN_SIZE

#define SWAP_VECTOR_ALIGN_SIZE   (1 << 5)

Typedef Documentation

◆ CSwapUInt16

◆ CSwapUInt32

Function Documentation

◆ SwapBytes2_32()

SWAP_BASE_FUNCS_PREFIXES SwapBytes2_32 ( CSwapUInt16 * items,
const CSwapUInt16 * lim )

◆ SwapBytes4_32()

SWAP_BASE_FUNCS_PREFIXES SwapBytes4_32 ( CSwapUInt32 * items,
const CSwapUInt32 * lim )

◆ z7_SwapBytes2()

Z7_NO_INLINE void z7_SwapBytes2 ( CSwapUInt16 * items,
size_t numItems )

◆ z7_SwapBytes4()

Z7_NO_INLINE void z7_SwapBytes4 ( CSwapUInt32 * items,
size_t numItems )

◆ z7_SwapBytesPrepare()

void z7_SwapBytesPrepare ( void )