GNU g++  v5.2.1
GNU Standard C++
decimal.h File Reference

This is an internal header file, included by other library headers. More...

Macros

#define _DEFINE_DECIMAL_BINARY_OP_BOTH(_Op, _T1, _T2, _T3)
 
#define _DEFINE_DECIMAL_BINARY_OP_LHS(_Op, _T1, _T2)
 
#define _DEFINE_DECIMAL_BINARY_OP_RHS(_Op, _T1, _T2)
 
#define _DEFINE_DECIMAL_BINARY_OP_WITH_DEC(_Op, _T1, _T2, _T3)
 
#define _DEFINE_DECIMAL_BINARY_OP_WITH_INT(_Op, _T1)
 
#define _DEFINE_DECIMAL_COMPARISON_BOTH(_Op, _T1, _T2)
 
#define _DEFINE_DECIMAL_COMPARISON_LHS(_Op, _T1, _T2)
 
#define _DEFINE_DECIMAL_COMPARISON_RHS(_Op, _T1, _T2)
 
#define _DEFINE_DECIMAL_COMPARISONS(_Op, _Tp)
 
#define _DEFINE_DECIMAL_COMPOUND_ASSIGNMENT_DEC(_Op1, _Op2, _T1, _T2)
 
#define _DEFINE_DECIMAL_COMPOUND_ASSIGNMENT_INT(_Op1, _Op2, _T1, _T2)
 
#define _DEFINE_DECIMAL_COMPOUND_ASSIGNMENTS(_Op1, _Op2, _T1)
 
#define _DEFINE_DECIMAL_UNARY_OP(_Op, _Tp)
 

Functions

namespace std _GLIBCXX_VISIBILITY (default)
 

Detailed Description

This is an internal header file, included by other library headers.

Do not attempt to use it directly. {decimal}

Macro Definition Documentation

#define _DEFINE_DECIMAL_BINARY_OP_BOTH (   _Op,
  _T1,
  _T2,
  _T3 
)
Value:
inline _T1 operator _Op(_T2 __lhs, _T3 __rhs) \
{ \
_T1 __retval; \
__retval.__setval(__lhs.__getval() _Op __rhs.__getval()); \
return __retval; \
}
#define _DEFINE_DECIMAL_BINARY_OP_LHS (   _Op,
  _T1,
  _T2 
)
Value:
inline _T1 operator _Op(_T1 __lhs, _T2 __rhs) \
{ \
_T1 __retval; \
__retval.__setval(__lhs.__getval() _Op __rhs); \
return __retval; \
}
#define _DEFINE_DECIMAL_BINARY_OP_RHS (   _Op,
  _T1,
  _T2 
)
Value:
inline _T1 operator _Op(_T2 __lhs, _T1 __rhs) \
{ \
_T1 __retval; \
__retval.__setval(__lhs _Op __rhs.__getval()); \
return __retval; \
}
#define _DEFINE_DECIMAL_BINARY_OP_WITH_DEC (   _Op,
  _T1,
  _T2,
  _T3 
)
Value:
inline _T1 operator _Op(_T2 __lhs, _T3 __rhs) \
{ \
_T1 __retval; \
__retval.__setval(__lhs.__getval() _Op __rhs.__getval()); \
return __retval; \
}

Referenced by _GLIBCXX_VISIBILITY().

#define _DEFINE_DECIMAL_BINARY_OP_WITH_INT (   _Op,
  _T1 
)
Value:
_DEFINE_DECIMAL_BINARY_OP_LHS(_Op, _T1, unsigned int); \
_DEFINE_DECIMAL_BINARY_OP_LHS(_Op, _T1, unsigned long); \
_DEFINE_DECIMAL_BINARY_OP_LHS(_Op, _T1, long long); \
_DEFINE_DECIMAL_BINARY_OP_LHS(_Op, _T1, unsigned long long); \
_DEFINE_DECIMAL_BINARY_OP_RHS(_Op, _T1, unsigned int); \
_DEFINE_DECIMAL_BINARY_OP_RHS(_Op, _T1, unsigned long); \
_DEFINE_DECIMAL_BINARY_OP_RHS(_Op, _T1, long long); \
_DEFINE_DECIMAL_BINARY_OP_RHS(_Op, _T1, unsigned long long); \
#define _DEFINE_DECIMAL_BINARY_OP_RHS(_Op, _T1, _T2)
#define _DEFINE_DECIMAL_BINARY_OP_LHS(_Op, _T1, _T2)

Referenced by _GLIBCXX_VISIBILITY().

#define _DEFINE_DECIMAL_COMPARISON_BOTH (   _Op,
  _T1,
  _T2 
)
Value:
inline bool operator _Op(_T1 __lhs, _T2 __rhs) \
{ return __lhs.__getval() _Op __rhs.__getval(); }
#define _DEFINE_DECIMAL_COMPARISON_LHS (   _Op,
  _T1,
  _T2 
)
Value:
inline bool operator _Op(_T1 __lhs, _T2 __rhs) \
{ return __lhs.__getval() _Op __rhs; }
#define _DEFINE_DECIMAL_COMPARISON_RHS (   _Op,
  _T1,
  _T2 
)
Value:
inline bool operator _Op(_T1 __lhs, _T2 __rhs) \
{ return __lhs _Op __rhs.__getval(); }
#define _DEFINE_DECIMAL_COMPARISONS (   _Op,
  _Tp 
)
Value:
_DEFINE_DECIMAL_COMPARISON_BOTH(_Op, _Tp, decimal32) \
_DEFINE_DECIMAL_COMPARISON_BOTH(_Op, _Tp, decimal64) \
_DEFINE_DECIMAL_COMPARISON_BOTH(_Op, _Tp, decimal128) \
_DEFINE_DECIMAL_COMPARISON_LHS(_Op, _Tp, unsigned int) \
_DEFINE_DECIMAL_COMPARISON_LHS(_Op, _Tp, unsigned long) \
_DEFINE_DECIMAL_COMPARISON_LHS(_Op, _Tp, long long) \
_DEFINE_DECIMAL_COMPARISON_LHS(_Op, _Tp, unsigned long long) \
_DEFINE_DECIMAL_COMPARISON_RHS(_Op, unsigned int, _Tp) \
_DEFINE_DECIMAL_COMPARISON_RHS(_Op, unsigned long, _Tp) \
_DEFINE_DECIMAL_COMPARISON_RHS(_Op, long long, _Tp) \
_DEFINE_DECIMAL_COMPARISON_RHS(_Op, unsigned long long, _Tp)
#define _DEFINE_DECIMAL_COMPARISON_LHS(_Op, _T1, _T2)
#define _DEFINE_DECIMAL_COMPARISON_BOTH(_Op, _T1, _T2)
#define _DEFINE_DECIMAL_COMPARISON_RHS(_Op, _T1, _T2)

Referenced by _GLIBCXX_VISIBILITY().

#define _DEFINE_DECIMAL_COMPOUND_ASSIGNMENT_DEC (   _Op1,
  _Op2,
  _T1,
  _T2 
)
Value:
inline _T1& _T1::operator _Op1(_T2 __rhs) \
{ \
__setval(__getval() _Op2 __rhs.__getval()); \
return *this; \
}
#define _DEFINE_DECIMAL_COMPOUND_ASSIGNMENT_INT (   _Op1,
  _Op2,
  _T1,
  _T2 
)
Value:
inline _T1& _T1::operator _Op1(_T2 __rhs) \
{ \
__setval(__getval() _Op2 __rhs); \
return *this; \
}
#define _DEFINE_DECIMAL_COMPOUND_ASSIGNMENTS (   _Op1,
  _Op2,
  _T1 
)
Value:
_DEFINE_DECIMAL_COMPOUND_ASSIGNMENT_DEC(_Op1, _Op2, _T1, decimal32) \
_DEFINE_DECIMAL_COMPOUND_ASSIGNMENT_DEC(_Op1, _Op2, _T1, decimal64) \
_DEFINE_DECIMAL_COMPOUND_ASSIGNMENT_DEC(_Op1, _Op2, _T1, decimal128) \
_DEFINE_DECIMAL_COMPOUND_ASSIGNMENT_INT(_Op1, _Op2, _T1, unsigned int) \
_DEFINE_DECIMAL_COMPOUND_ASSIGNMENT_INT(_Op1, _Op2, _T1, unsigned long)\
_DEFINE_DECIMAL_COMPOUND_ASSIGNMENT_INT(_Op1, _Op2, _T1, long long) \
_DEFINE_DECIMAL_COMPOUND_ASSIGNMENT_INT(_Op1, _Op2, _T1, unsigned long long)
#define _DEFINE_DECIMAL_COMPOUND_ASSIGNMENT_DEC(_Op1, _Op2, _T1, _T2)
#define _DEFINE_DECIMAL_COMPOUND_ASSIGNMENT_INT(_Op1, _Op2, _T1, _T2)

Referenced by _GLIBCXX_VISIBILITY().

#define _DEFINE_DECIMAL_UNARY_OP (   _Op,
  _Tp 
)
Value:
inline _Tp operator _Op(_Tp __rhs) \
{ \
_Tp __tmp; \
__tmp.__setval(_Op __rhs.__getval()); \
return __tmp; \
}

Referenced by _GLIBCXX_VISIBILITY().

Function Documentation