MessagePack for C++
Loading...
Searching...
No Matches
sysdep.hpp File Reference
#include <stdlib.h>
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
#include <boost/predef/other/endian.h>
Include dependency graph for sysdep.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MSGPACK_DLLEXPORT
#define _msgpack_sync_decr_and_fetch(ptr)
#define _msgpack_sync_incr_and_fetch(ptr)
#define MSGPACK_ENDIAN_LITTLE_BYTE   BOOST_ENDIAN_LITTLE_BYTE
#define MSGPACK_ENDIAN_BIG_BYTE   BOOST_ENDIAN_BIG_BYTE
#define _msgpack_load16(cast, from, to)
#define _msgpack_load32(cast, from, to)
#define _msgpack_load64(cast, from, to)
#define _msgpack_store16(to, num)
#define _msgpack_store32(to, num)
#define _msgpack_store64(to, num)

Typedefs

typedef unsigned int _msgpack_atomic_counter_t

Macro Definition Documentation

◆ _msgpack_load16

#define _msgpack_load16 ( cast,
from,
to )
Value:
do { \
memcpy((cast*)(to), (from), sizeof(cast)); \
*(to) = (cast)_msgpack_be16(*(to)); \
} while (0);

Referenced by msgpack::detail::load().

◆ _msgpack_load32

#define _msgpack_load32 ( cast,
from,
to )

◆ _msgpack_load64

#define _msgpack_load64 ( cast,
from,
to )

◆ _msgpack_store16

◆ _msgpack_store32

◆ _msgpack_store64

◆ _msgpack_sync_decr_and_fetch

#define _msgpack_sync_decr_and_fetch ( ptr)
Value:
__sync_sub_and_fetch(ptr, 1)

Referenced by msgpack::detail::decr_count().

◆ _msgpack_sync_incr_and_fetch

#define _msgpack_sync_incr_and_fetch ( ptr)
Value:
__sync_add_and_fetch(ptr, 1)

Referenced by msgpack::detail::incr_count().

◆ MSGPACK_DLLEXPORT

#define MSGPACK_DLLEXPORT

◆ MSGPACK_ENDIAN_BIG_BYTE

#define MSGPACK_ENDIAN_BIG_BYTE   BOOST_ENDIAN_BIG_BYTE

◆ MSGPACK_ENDIAN_LITTLE_BYTE

#define MSGPACK_ENDIAN_LITTLE_BYTE   BOOST_ENDIAN_LITTLE_BYTE

Typedef Documentation

◆ _msgpack_atomic_counter_t

typedef unsigned int _msgpack_atomic_counter_t