DPDK  1.8.0
Macros | Functions
rte_acl_osdep_alone.h File Reference
#include <x86intrin.h>

Macros

#define SOCKET_ID_ANY   -1
#define RTE_CACHE_LINE_SIZE   64
#define RTE_CACHE_LINE_MASK   (RTE_CACHE_LINE_SIZE-1)
#define __rte_cache_aligned   __attribute__((__aligned__(RTE_CACHE_LINE_SIZE)))

Functions

static uint32_t rte_bsf32 (uint32_t v)

Detailed Description

RTE ACL OS dependent file. An example how to build/use ACL library standalone (without rest of DPDK). Don't include that file on it's own, use <rte_acl_osdep.h>.

Macro Definition Documentation

#define __rte_cache_aligned   __attribute__((__aligned__(RTE_CACHE_LINE_SIZE)))

Force alignment to cache line.

#define RTE_CACHE_LINE_MASK   (RTE_CACHE_LINE_SIZE-1)

Cache line mask.

#define RTE_CACHE_LINE_SIZE   64

Cache line size.

#define SOCKET_ID_ANY   -1

Any NUMA socket.

Function Documentation

static uint32_t rte_bsf32 ( uint32_t  v)
inlinestatic

Searches the input parameter for the least significant set bit (starting from zero). If a least significant 1 bit is found, its bit index is returned. If the content of the input parameter is zero, then the content of the return value is undefined.

Parameters
vinput parameter, should not be zero.
Returns
least significant set bit in the input parameter.