Macros | Functions
byteops.h File Reference

Go to the source code of this file.

Macros

#define __fast_swap(a, b)   do { (a) ^= (b); (b) ^= (a); (a) ^= (b); } while(0)
 
#define __static_byteswap_16(x)
 
#define __static_byteswap_32(x)
 
#define __static_byteswap_64(x)
 

Functions

static _u16 __byteswap_16 (_u16 x)
 
static _u32 __byteswap_32 (_u32 x)
 
static _u64 __byteswap_64 (_u64 x)
 

Macro Definition Documentation

#define __fast_swap (   a,
 
)    do { (a) ^= (b); (b) ^= (a); (a) ^= (b); } while(0)

Definition at line 34 of file byteops.h.

#define __static_byteswap_16 (   x)
Value:
((_u16)( \
(((_u16)(x) & (_u16)0x00FFU) << 8) | \
(((_u16)(x) & (_u16)0xFF00U) >> 8)))
uint16_t _u16
Definition: rptypes.h:66

Definition at line 13 of file byteops.h.

#define __static_byteswap_32 (   x)
Value:
((_u32)( \
(((_u32)(x) & (_u32)0x000000FFUL) << 24) | \
(((_u32)(x) & (_u32)0x0000FF00UL) << 8) | \
(((_u32)(x) & (_u32)0x00FF0000UL) >> 8) | \
(((_u32)(x) & (_u32)0xFF000000UL) >> 24)))
uint32_t _u32
Definition: rptypes.h:69

Definition at line 17 of file byteops.h.

#define __static_byteswap_64 (   x)
Value:
((_u64)( \
(((_u64)(x) & (_u64)0x00000000000000ffULL) << 56) | \
(((_u64)(x) & (_u64)0x000000000000ff00ULL) << 40) | \
(((_u64)(x) & (_u64)0x0000000000ff0000ULL) << 24) | \
(((_u64)(x) & (_u64)0x00000000ff000000ULL) << 8) | \
(((_u64)(x) & (_u64)0x000000ff00000000ULL) >> 8) | \
(((_u64)(x) & (_u64)0x0000ff0000000000ULL) >> 24) | \
(((_u64)(x) & (_u64)0x00ff000000000000ULL) >> 40) | \
(((_u64)(x) & (_u64)0xff00000000000000ULL) >> 56)))
uint64_t _u64
Definition: rptypes.h:72

Definition at line 23 of file byteops.h.

Function Documentation

static _u16 __byteswap_16 ( _u16  x)
inlinestatic

Definition at line 37 of file byteops.h.

static _u32 __byteswap_32 ( _u32  x)
inlinestatic

Definition at line 46 of file byteops.h.

static _u64 __byteswap_64 ( _u64  x)
inlinestatic

Definition at line 55 of file byteops.h.



rplidar_ros
Author(s):
autogenerated on Wed Jan 1 2020 04:01:40