Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
inttype.hpp File Reference

int type definition and macros Copyright (C) 2008 Cybozu Labs, Inc., all rights reserved.

#include <stdint.h>
#include <unistd.h>
Include dependency graph for inttype.hpp:

Go to the source code of this file.

Namespaces

namespace  cybozu
 

Macros

#define CYBOZU_ALIGN(x)
 
#define CYBOZU_FORCE_INLINE   __attribute__((always_inline))
 
#define CYBOZU_ALLOCA_(x)
 
#define CYBOZU_NUM_OF_ARRAY(x)
 
#define CYBOZU_SNPRINTF(x, len, ...)
 
#define CYBOZU_CPP_VERSION_CPP03   0
 
#define CYBOZU_CPP_VERSION_TR1   1
 
#define CYBOZU_CPP_VERSION_CPP11   2
 
#define CYBOZU_CPP_VERSION   CYBOZU_CPP_VERSION_CPP03
 
#define CYBOZU_NAMESPACE_STD   std
 
#define CYBOZU_NAMESPACE_TR1_BEGIN
 
#define CYBOZU_NAMESPACE_TR1_END
 
#define CYBOZU_OS_BIT   32
 
#define CYBOZU_ENDIAN_UNKNOWN   0
 
#define CYBOZU_ENDIAN_LITTLE   1
 
#define CYBOZU_ENDIAN_BIG   2
 
#define CYBOZU_ENDIAN   CYBOZU_ENDIAN_UNKNOWN
 

Functions

template<class T >
void cybozu::disable_warning_unused_variable (const T &)
 
template<class T , class S >
T cybozu::cast (const S *ptr)
 
template<class T , class S >
T cybozu::cast (S *ptr)
 

Macro Definition Documentation

◆ CYBOZU_ALIGN

#define CYBOZU_ALIGN ( x)
Value:
__attribute__((aligned(x)))

Definition at line 39 of file inttype.hpp.

◆ CYBOZU_ALLOCA_

#define CYBOZU_ALLOCA_ ( x)
Value:
__builtin_alloca(x)

Definition at line 54 of file inttype.hpp.

◆ CYBOZU_CPP_VERSION

#define CYBOZU_CPP_VERSION   CYBOZU_CPP_VERSION_CPP03

Definition at line 81 of file inttype.hpp.

◆ CYBOZU_CPP_VERSION_CPP03

#define CYBOZU_CPP_VERSION_CPP03   0

Definition at line 68 of file inttype.hpp.

◆ CYBOZU_CPP_VERSION_CPP11

#define CYBOZU_CPP_VERSION_CPP11   2

Definition at line 70 of file inttype.hpp.

◆ CYBOZU_CPP_VERSION_TR1

#define CYBOZU_CPP_VERSION_TR1   1

Definition at line 69 of file inttype.hpp.

◆ CYBOZU_ENDIAN

#define CYBOZU_ENDIAN   CYBOZU_ENDIAN_UNKNOWN

Definition at line 110 of file inttype.hpp.

◆ CYBOZU_ENDIAN_BIG

#define CYBOZU_ENDIAN_BIG   2

Definition at line 106 of file inttype.hpp.

◆ CYBOZU_ENDIAN_LITTLE

#define CYBOZU_ENDIAN_LITTLE   1

Definition at line 105 of file inttype.hpp.

◆ CYBOZU_ENDIAN_UNKNOWN

#define CYBOZU_ENDIAN_UNKNOWN   0

Definition at line 104 of file inttype.hpp.

◆ CYBOZU_FORCE_INLINE

#define CYBOZU_FORCE_INLINE   __attribute__((always_inline))

Definition at line 46 of file inttype.hpp.

◆ CYBOZU_NAMESPACE_STD

#define CYBOZU_NAMESPACE_STD   std

Definition at line 89 of file inttype.hpp.

◆ CYBOZU_NAMESPACE_TR1_BEGIN

#define CYBOZU_NAMESPACE_TR1_BEGIN

Definition at line 90 of file inttype.hpp.

◆ CYBOZU_NAMESPACE_TR1_END

#define CYBOZU_NAMESPACE_TR1_END

Definition at line 91 of file inttype.hpp.

◆ CYBOZU_NUM_OF_ARRAY

#define CYBOZU_NUM_OF_ARRAY ( x)
Value:
(sizeof(x) / sizeof(*x))

Definition at line 58 of file inttype.hpp.

◆ CYBOZU_OS_BIT

#define CYBOZU_OS_BIT   32

Definition at line 98 of file inttype.hpp.

◆ CYBOZU_SNPRINTF

#define CYBOZU_SNPRINTF ( x,
len,
... )
Value:
(void)snprintf(x, len, __VA_ARGS__)
size_t len

Definition at line 64 of file inttype.hpp.