Defines | Functions
byteops.h File Reference

Go to the source code of this file.

Defines

#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)

Define 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)))

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)))

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)))

Definition at line 23 of file byteops.h.


Function Documentation

static _u16 __byteswap_16 ( _u16  x) [inline, static]

Definition at line 37 of file byteops.h.

static _u32 __byteswap_32 ( _u32  x) [inline, static]

Definition at line 46 of file byteops.h.

static _u64 __byteswap_64 ( _u64  x) [inline, static]

Definition at line 55 of file byteops.h.



rplidar_ros
Author(s):
autogenerated on Mon Mar 18 2019 02:34:23