ACE  6.3.3
Macros | Typedefs | Functions
Basic_Types.h File Reference
#include "ace/os_include/os_limits.h"
#include "ace/os_include/os_float.h"
#include "ace/os_include/os_stdlib.h"
#include "ace/os_include/os_stddef.h"
#include "ace/os_include/arpa/os_inet.h"
#include "ace/os_include/sys/os_types.h"
#include "ace/ACE_export.h"
#include <stdint.h>
#include <inttypes.h>

Macros

#define ACE_SIZEOF_CHAR   1
 
#define ACE_SIZEOF_WCHAR   0
 
#define ACE_SIZEOF_LONG_LONG   8
 
#define ACE_WINT_T   wint_t
 
#define ACE_WCHAR_T   wchar_t
 
#define ACE_SIZEOF_VOID_P   ACE_SIZEOF_LONG
 
#define ACE_BIG_ENDIAN   0x3210
 
#define ACE_BYTE_ORDER   ACE_BIG_ENDIAN
 
#define ACE_SWAP_LONG(L)
 
#define ACE_SWAP_WORD(L)   ((((L) & 0x00FF) << 8) | (((L) & 0xFF00) >> 8))
 
#define ACE_HTONL(X)   htonl (X)
 
#define ACE_NTOHL(X)   ntohl (X)
 
#define ACE_IDL_NCTOHL(X)   (X << 24)
 
#define ACE_IDL_NSTOHL(X)   ((X) << 16)
 
#define ACE_HTONS(x)   htons(x)
 
#define ACE_NTOHS(x)   ntohs(x)
 
#define ACE_LONGLONG_TO_PTR(PTR_TYPE, L)   reinterpret_cast<PTR_TYPE> (static_cast<intptr_t> (L))
 
#define ACE_UINT64_LITERAL(n)   n ## ui64
 
#define ACE_INT64_LITERAL(n)   n ## i64
 
#define ACE_INT8_FORMAT_SPECIFIER_ASCII   "%d"
 
#define ACE_INT8_FORMAT_SPECIFIER   ACE_TEXT (ACE_INT8_FORMAT_SPECIFIER_ASCII)
 
#define ACE_UINT8_FORMAT_SPECIFIER_ASCII   "%u"
 
#define ACE_UINT8_FORMAT_SPECIFIER   ACE_TEXT (ACE_UINT8_FORMAT_SPECIFIER_ASCII)
 
#define ACE_INT16_FORMAT_SPECIFIER_ASCII   "%d"
 
#define ACE_INT16_FORMAT_SPECIFIER   ACE_TEXT (ACE_INT16_FORMAT_SPECIFIER_ASCII)
 
#define ACE_UINT16_FORMAT_SPECIFIER_ASCII   "%u"
 
#define ACE_UINT16_FORMAT_SPECIFIER   ACE_TEXT (ACE_UINT16_FORMAT_SPECIFIER_ASCII)
 
#define ACE_INT32_FORMAT_SPECIFIER_ASCII   "%ld"
 
#define ACE_INT32_FORMAT_SPECIFIER   ACE_TEXT (ACE_INT32_FORMAT_SPECIFIER_ASCII)
 
#define ACE_UINT32_FORMAT_SPECIFIER_ASCII   "%lu"
 
#define ACE_UINT32_FORMAT_SPECIFIER   ACE_TEXT (ACE_UINT32_FORMAT_SPECIFIER_ASCII)
 
#define ACE_INT64_FORMAT_SPECIFIER_ASCII   "%lld"
 
#define ACE_INT64_FORMAT_SPECIFIER   ACE_TEXT (ACE_INT64_FORMAT_SPECIFIER_ASCII)
 
#define ACE_UINT64_FORMAT_SPECIFIER_ASCII   "%llu"
 
#define ACE_UINT64_FORMAT_SPECIFIER   ACE_TEXT (ACE_UINT64_FORMAT_SPECIFIER_ASCII)
 
#define ACE_SSIZE_T_FORMAT_SPECIFIER_ASCII   "%d"
 
#define ACE_SSIZE_T_FORMAT_SPECIFIER   ACE_TEXT (ACE_SSIZE_T_FORMAT_SPECIFIER_ASCII)
 
#define ACE_SIZE_T_FORMAT_SPECIFIER_ASCII   "%u"
 
#define ACE_SIZE_T_FORMAT_SPECIFIER   ACE_TEXT (ACE_SIZE_T_FORMAT_SPECIFIER_ASCII)
 
#define ACE_UINT64_DBLCAST_ADAPTER(n)   static_cast<__int64> (n)
 
#define ACE_CHAR_MAX   0x7F
 
#define ACE_CHAR_MIN   -(ACE_CHAR_MAX)-1
 
#define ACE_OCTET_MAX   0xFF
 
#define ACE_INT16_MAX   0x7FFF
 
#define ACE_INT16_MIN   -(ACE_INT16_MAX)-1
 
#define ACE_UINT16_MAX   0xFFFF
 
#define ACE_WCHAR_MAX   ACE_UINT16_MAX
 
#define ACE_INT32_MAX   0x7FFFFFFF
 
#define ACE_INT32_MIN   -(ACE_INT32_MAX)-1
 
#define ACE_UINT32_MAX   0xFFFFFFFF
 
#define ACE_INT64_MAX   ACE_INT64_LITERAL(0x7FFFFFFFFFFFFFFF)
 
#define ACE_INT64_MIN   -(ACE_INT64_MAX)-1
 
#define ACE_UINT64_MAX   ACE_UINT64_LITERAL (0xFFFFFFFFFFFFFFFF)
 
#define ACE_FLT_MAX   3.402823466e+38F
 
#define ACE_FLT_MIN   1.175494351e-38F
 
#define ACE_DBL_MAX   1.7976931348623158e+308
 
#define ACE_DBL_MIN   2.2250738585072014e-308
 

Typedefs

typedef signed char ACE_INT8
 
typedef unsigned char ACE_UINT8
 
typedef long long ACE_INT64
 
typedef unsigned long long ACE_UINT64
 
typedef unsigned char ACE_Byte
 Define a generic byte for use in codecs. More...
 

Functions

ACE_UINT32 ACE_U64_TO_U32 (ACE_UINT64 n)
 
ACE_UINT32 ACE_CU64_TO_CU32 (ACE_UINT64 n)
 

Detailed Description

Author
David L. Levine

#defines the list of preprocessor macros below. The config.h file can pre-define any of these to short-cut the definitions. This is usually only necessary if the preprocessor does all of its math using integers.

Sizes of built-in types:

Wrappers for built-in types of specific sizes:

Byte-order (endian-ness) determination: ACE_BYTE_ORDER, to either ACE_BIG_ENDIAN or ACE_LITTLE_ENDIAN

Macro Definition Documentation

#define ACE_BIG_ENDIAN   0x3210
#define ACE_BYTE_ORDER   ACE_BIG_ENDIAN
#define ACE_CHAR_MAX   0x7F
#define ACE_CHAR_MIN   -(ACE_CHAR_MAX)-1
#define ACE_DBL_MAX   1.7976931348623158e+308
#define ACE_DBL_MIN   2.2250738585072014e-308
#define ACE_FLT_MAX   3.402823466e+38F
#define ACE_FLT_MIN   1.175494351e-38F
#define ACE_HTONL (   X)    htonl (X)
#define ACE_HTONS (   x)    htons(x)
#define ACE_IDL_NCTOHL (   X)    (X << 24)
#define ACE_IDL_NSTOHL (   X)    ((X) << 16)
#define ACE_INT16_FORMAT_SPECIFIER   ACE_TEXT (ACE_INT16_FORMAT_SPECIFIER_ASCII)
#define ACE_INT16_FORMAT_SPECIFIER_ASCII   "%d"
#define ACE_INT16_MAX   0x7FFF
#define ACE_INT16_MIN   -(ACE_INT16_MAX)-1
#define ACE_INT32_FORMAT_SPECIFIER   ACE_TEXT (ACE_INT32_FORMAT_SPECIFIER_ASCII)
#define ACE_INT32_FORMAT_SPECIFIER_ASCII   "%ld"
#define ACE_INT32_MAX   0x7FFFFFFF
#define ACE_INT32_MIN   -(ACE_INT32_MAX)-1
#define ACE_INT64_FORMAT_SPECIFIER   ACE_TEXT (ACE_INT64_FORMAT_SPECIFIER_ASCII)
#define ACE_INT64_FORMAT_SPECIFIER_ASCII   "%lld"
#define ACE_INT64_LITERAL (   n)    n ## i64
#define ACE_INT64_MAX   ACE_INT64_LITERAL(0x7FFFFFFFFFFFFFFF)
#define ACE_INT64_MIN   -(ACE_INT64_MAX)-1
#define ACE_INT8_FORMAT_SPECIFIER   ACE_TEXT (ACE_INT8_FORMAT_SPECIFIER_ASCII)
#define ACE_INT8_FORMAT_SPECIFIER_ASCII   "%d"
#define ACE_LONGLONG_TO_PTR (   PTR_TYPE,
 
)    reinterpret_cast<PTR_TYPE> (static_cast<intptr_t> (L))
#define ACE_NTOHL (   X)    ntohl (X)
#define ACE_NTOHS (   x)    ntohs(x)
#define ACE_OCTET_MAX   0xFF
#define ACE_SIZE_T_FORMAT_SPECIFIER   ACE_TEXT (ACE_SIZE_T_FORMAT_SPECIFIER_ASCII)
#define ACE_SIZE_T_FORMAT_SPECIFIER_ASCII   "%u"
#define ACE_SIZEOF_CHAR   1
#define ACE_SIZEOF_LONG_LONG   8
#define ACE_SIZEOF_VOID_P   ACE_SIZEOF_LONG
#define ACE_SIZEOF_WCHAR   0
#define ACE_SSIZE_T_FORMAT_SPECIFIER   ACE_TEXT (ACE_SSIZE_T_FORMAT_SPECIFIER_ASCII)
#define ACE_SSIZE_T_FORMAT_SPECIFIER_ASCII   "%d"
#define ACE_SWAP_LONG (   L)
Value:
((ACE_SWAP_WORD ((L) & 0xFFFF) << 16) \
| ACE_SWAP_WORD(((L) >> 16) & 0xFFFF))
#define ACE_SWAP_WORD(L)
Definition: Basic_Types.h:383
#define ACE_SWAP_WORD (   L)    ((((L) & 0x00FF) << 8) | (((L) & 0xFF00) >> 8))
#define ACE_UINT16_FORMAT_SPECIFIER   ACE_TEXT (ACE_UINT16_FORMAT_SPECIFIER_ASCII)
#define ACE_UINT16_FORMAT_SPECIFIER_ASCII   "%u"
#define ACE_UINT16_MAX   0xFFFF
#define ACE_UINT32_FORMAT_SPECIFIER   ACE_TEXT (ACE_UINT32_FORMAT_SPECIFIER_ASCII)
#define ACE_UINT32_FORMAT_SPECIFIER_ASCII   "%lu"
#define ACE_UINT32_MAX   0xFFFFFFFF
#define ACE_UINT64_DBLCAST_ADAPTER (   n)    static_cast<__int64> (n)
#define ACE_UINT64_FORMAT_SPECIFIER   ACE_TEXT (ACE_UINT64_FORMAT_SPECIFIER_ASCII)
#define ACE_UINT64_FORMAT_SPECIFIER_ASCII   "%llu"
#define ACE_UINT64_LITERAL (   n)    n ## ui64
#define ACE_UINT64_MAX   ACE_UINT64_LITERAL (0xFFFFFFFFFFFFFFFF)
#define ACE_UINT8_FORMAT_SPECIFIER   ACE_TEXT (ACE_UINT8_FORMAT_SPECIFIER_ASCII)
#define ACE_UINT8_FORMAT_SPECIFIER_ASCII   "%u"
#define ACE_WCHAR_MAX   ACE_UINT16_MAX
#define ACE_WCHAR_T   wchar_t
#define ACE_WINT_T   wint_t

Typedef Documentation

typedef unsigned char ACE_Byte

Define a generic byte for use in codecs.

typedef long long ACE_INT64
typedef signed char ACE_INT8
typedef unsigned long long ACE_UINT64
typedef unsigned char ACE_UINT8

Function Documentation

ACE_UINT32 ACE_CU64_TO_CU32 ( ACE_UINT64  n)
inline
ACE_UINT32 ACE_U64_TO_U32 ( ACE_UINT64  n)
inline