MediaProcessors
Macros
mem_utils.h File Reference
#include <sys/types.h>
#include <inttypes.h>
Include dependency graph for mem_utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CTX_S_BASE_ALIGN   sizeof(uint64_t)
 
#define EXTEND_SIZE_TO_MULTIPLE(SIZE, MULTIPLE)
 
#define SIZE_IS_MULTIPLE(SIZE, MULTIPLE)   (((SIZE)% MULTIPLE)== 0)
 
#define WORD_T   uint32_t
 
#define DPATHW   32
 
#define DPATHW_SHIFTb   5
 
#define DPATHW_SHIFTB   2
 
#define SWAPW   SWAP4
 

Detailed Description

Author
Rafael Antoniello

Definition in file mem_utils.h.

Macro Definition Documentation

#define CTX_S_BASE_ALIGN   sizeof(uint64_t)

Byte-size alignment constant used for accessing structures and sub-structures.

Definition at line 47 of file mem_utils.h.

#define EXTEND_SIZE_TO_MULTIPLE (   SIZE,
  MULTIPLE 
)
Value:
(\
(SIZE)% MULTIPLE? (SIZE)+ (MULTIPLE- ((SIZE)% MULTIPLE)): (SIZE)\
)

Extend SIZE to a multiple of MULTIPLE.

Definition at line 52 of file mem_utils.h.

#define SIZE_IS_MULTIPLE (   SIZE,
  MULTIPLE 
)    (((SIZE)% MULTIPLE)== 0)

Boolean: is SIZE multiple of MULTIPLE?

Definition at line 60 of file mem_utils.h.