GNU Radio 3.3.0 C++ API
sync_utils.h File Reference
#include <spu_intrinsics.h>
Include dependency graph for spu_source/sync_utils.h:

Go to the source code of this file.

Classes

union  addr64

Defines

#define likely(_c)   __builtin_expect((_c), 1)
#define unlikely(_c)   __builtin_expect((_c), 0)
#define ALLOCA(_nbytes, _size)   alloca((_nbytes) + (_size)-1)
#define ALIGN(_ptr, _size)   ((((u32) _ptr) + (_size)-1) & ~((_size)-1))
#define ALIGN128_EA(_ull)   ((_ull) & ~(127ULL))
#define OFFSET128_EA_U32(_ull)   (((_ull) & 127ULL) >> 2)
#define OFFSET128_EA_U16(_ull)   (((_ull) & 127ULL) >> 1)
#define MFC_DMA(_ls, _ea, _sz, _tg, _cmd)   spu_mfcdma64(_ls, _ea.ui[0], _ea.ui[1], _sz, _tg, _cmd)
#define MFC_SYNC()
#define MFC_EIEIO()

Typedefs

typedef unsigned int u32
typedef signed int s32
typedef unsigned long long u64
typedef unsigned long long eaddr_t

Define Documentation

#define ALIGN (   _ptr,
  _size 
)    ((((u32) _ptr) + (_size)-1) & ~((_size)-1))
#define ALLOCA (   _nbytes,
  _size 
)    alloca((_nbytes) + (_size)-1)
#define likely (   _c)    __builtin_expect((_c), 1)
#define MFC_DMA (   _ls,
  _ea,
  _sz,
  _tg,
  _cmd 
)    spu_mfcdma64(_ls, _ea.ui[0], _ea.ui[1], _sz, _tg, _cmd)
#define MFC_EIEIO ( )
Value:
{                               \
    u32 _tagid = 0;                             \
    spu_writech(mfc_tag_id, _tagid);            \
    spu_writech(mfc_cmd_queue, MFC_EIEIO_CMD);  \
}
#define MFC_SYNC ( )
Value:
{                               \
    u32 _tagid = 0;                             \
    spu_writech(mfc_tag_id, _tagid);            \
    spu_writech(mfc_cmd_queue, MFC_SYNC_CMD);   \
}
#define OFFSET128_EA_U16 (   _ull)    (((_ull) & 127ULL) >> 1)
#define OFFSET128_EA_U32 (   _ull)    (((_ull) & 127ULL) >> 2)
#define unlikely (   _c)    __builtin_expect((_c), 0)

Typedef Documentation

typedef unsigned long long eaddr_t
typedef signed int s32
typedef unsigned int u32
typedef unsigned long long u64