Navigation

Operators and Keywords

Function List:

C++ API

oct-inttypes.cc File Reference

#include "lo-error.h"
#include "oct-inttypes.h"
Include dependency graph for oct-inttypes.cc:

Classes

class  rev_op< xop >

Defines

#define DECLARE_OCTAVE_INT_TYPENAME(TYPE, TYPENAME)
#define DEFINE_REVERTED_OPERATOR(OP1, OP2)
#define INT_DOUBLE_BINOP_DECL(OP, SUFFIX)
#define DOUBLE_INT_BINOP_DECL(OP, SUFFIX)
#define INSTANTIATE_INT64_DOUBLE_CMP_OP0(OP, T1, T2)
#define INSTANTIATE_INT64_DOUBLE_CMP_OP(OP)
#define INSTANTIATE_INTTYPE(T)

Functions

 DEFINE_REVERTED_OPERATOR (lt, gt)
 DEFINE_REVERTED_OPERATOR (gt, lt)
 DEFINE_REVERTED_OPERATOR (le, ge)
 DEFINE_REVERTED_OPERATOR (ge, le)
 INT_DOUBLE_BINOP_DECL (+, uint64)
 DOUBLE_INT_BINOP_DECL (+, uint64)
 INT_DOUBLE_BINOP_DECL (+, int64)
 DOUBLE_INT_BINOP_DECL (+, int64)
 INT_DOUBLE_BINOP_DECL (-, uint64)
 DOUBLE_INT_BINOP_DECL (-, uint64)
 INT_DOUBLE_BINOP_DECL (-, int64)
 DOUBLE_INT_BINOP_DECL (-, int64)
INT_DOUBLE_BINOP_DECL uint64 if (y >=0 &&y< octave_uint64::max()&&y==xround(y))
else if (y==0.5)
 INSTANTIATE_INT64_DOUBLE_CMP_OP (le)
 INSTANTIATE_INT64_DOUBLE_CMP_OP (gt)
 INSTANTIATE_INT64_DOUBLE_CMP_OP (ge)
 INSTANTIATE_INT64_DOUBLE_CMP_OP (eq)
 INSTANTIATE_INT64_DOUBLE_CMP_OP (ne)
template<class T >
octave_int< T > pow (const octave_int< T > &a, const octave_int< T > &b)
template<class T >
octave_int< T > pow (const double &a, const octave_int< T > &b)
template<class T >
octave_int< T > pow (const octave_int< T > &a, const double &b)
template<class T >
octave_int< T > powf (const float &a, const octave_int< T > &b)
template<class T >
octave_int< T > powf (const octave_int< T > &a, const float &b)
 INSTANTIATE_INTTYPE (int8_t)
 INSTANTIATE_INTTYPE (int16_t)
 INSTANTIATE_INTTYPE (int32_t)
 INSTANTIATE_INTTYPE (int64_t)
 INSTANTIATE_INTTYPE (uint8_t)
 INSTANTIATE_INTTYPE (uint16_t)
 INSTANTIATE_INTTYPE (uint32_t)
 INSTANTIATE_INTTYPE (uint64_t)

Define Documentation

#define DECLARE_OCTAVE_INT_TYPENAME (   TYPE,
  TYPENAME 
)
Value:
template <> \
  OCTAVE_API const char * \
  octave_int<TYPE>::type_name () { return TYPENAME; }
#define DEFINE_REVERTED_OPERATOR (   OP1,
  OP2 
)
Value:
template <> \
  class rev_op<octave_int_cmp_op::OP1> \
  { \
  public: \
    typedef octave_int_cmp_op::OP2 op; \
  }
#define DOUBLE_INT_BINOP_DECL (   OP,
  SUFFIX 
)
Value:
template <> \
  OCTAVE_API octave_ ## SUFFIX \
  operator OP (const double& x, const octave_ ## SUFFIX & y)
#define INSTANTIATE_INT64_DOUBLE_CMP_OP (   OP  ) 
#define INSTANTIATE_INT64_DOUBLE_CMP_OP0 (   OP,
  T1,
  T2 
)
Value:
template OCTAVE_API bool \
  octave_int_cmp_op::emulate_mop<octave_int_cmp_op::OP> (T1 x, T2 y)
#define INSTANTIATE_INTTYPE (   T  ) 
Value:
template class OCTAVE_API octave_int<T>; \
  template OCTAVE_API octave_int<T> pow (const octave_int<T>&, const octave_int<T>&); \
  template OCTAVE_API octave_int<T> pow (const double&, const octave_int<T>&); \
  template OCTAVE_API octave_int<T> pow (const octave_int<T>&, const double&); \
  template OCTAVE_API octave_int<T> powf (const float&, const octave_int<T>&); \
  template OCTAVE_API octave_int<T> powf (const octave_int<T>&, const float&); \
  template OCTAVE_API octave_int<T> \
  bitshift (const octave_int<T>&, int, const octave_int<T>&); \
#define INT_DOUBLE_BINOP_DECL (   OP,
  SUFFIX 
)
Value:
template <> \
  OCTAVE_API octave_ ## SUFFIX \
  operator OP (const octave_ ## SUFFIX & x, const double& y)

Function Documentation

DEFINE_REVERTED_OPERATOR ( gt  ,
lt   
)
DEFINE_REVERTED_OPERATOR ( ge  ,
le   
)
DEFINE_REVERTED_OPERATOR ( lt  ,
gt   
)
DEFINE_REVERTED_OPERATOR ( le  ,
ge   
)
DOUBLE_INT_BINOP_DECL ( ,
int64   
)
DOUBLE_INT_BINOP_DECL ( ,
uint64   
)
DOUBLE_INT_BINOP_DECL ( ,
uint64   
)
DOUBLE_INT_BINOP_DECL ( ,
int64   
)
else if (  ) 
else if ( = = 0.5  ) 
INSTANTIATE_INT64_DOUBLE_CMP_OP ( le   ) 
INSTANTIATE_INT64_DOUBLE_CMP_OP ( gt   ) 
INSTANTIATE_INT64_DOUBLE_CMP_OP ( ge   ) 
INSTANTIATE_INT64_DOUBLE_CMP_OP ( eq   ) 
INSTANTIATE_INT64_DOUBLE_CMP_OP ( ne   ) 
INSTANTIATE_INTTYPE ( int16_t   ) 
INSTANTIATE_INTTYPE ( uint32_t   ) 
INSTANTIATE_INTTYPE ( uint16_t   ) 
INSTANTIATE_INTTYPE ( int32_t   ) 
INSTANTIATE_INTTYPE ( uint64_t   ) 
INSTANTIATE_INTTYPE ( int8_t   ) 
INSTANTIATE_INTTYPE ( int64_t   ) 
INSTANTIATE_INTTYPE ( uint8_t   ) 
INT_DOUBLE_BINOP_DECL ( ,
int64   
)
INT_DOUBLE_BINOP_DECL ( ,
uint64   
)
INT_DOUBLE_BINOP_DECL ( ,
uint64   
)
INT_DOUBLE_BINOP_DECL ( ,
int64   
)
template<class T >
octave_int<T> pow ( const octave_int< T > &  a,
const double &  b 
)
template<class T >
octave_int<T> pow ( const octave_int< T > &  a,
const octave_int< T > &  b 
)
template<class T >
octave_int<T> pow ( const double &  a,
const octave_int< T > &  b 
)
template<class T >
octave_int<T> powf ( const float &  a,
const octave_int< T > &  b 
)
template<class T >
octave_int<T> powf ( const octave_int< T > &  a,
const float &  b 
)
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines