Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

nci/suif/suif2b/common/i_integer.cpp File Reference

#include "suif_copyright.h"
#include "system_specific.h"
#include "i_integer.h"
#include "MString.h"
#include <limits.h>
#include <string.h>
#include <ctype.h>
#include <assert.h>
#include <stdarg.h>
#include <iostream.h>

Compounds

class  StringInteger

Defines

#define SIZE_T_MIN   0
#define SIZE_T_MAX
#define NEG_LONG_MIN
#define NEG_INT_MIN   (((int)(INT_MAX + INT_MIN >= 0 ? 0 : INT_MIN)) - INT_MIN)
#define CUTOFF   10
#define error(a,b)    assert(0);
#define DO_COMPARISON(OP, int_type, max_value, min_value)
#define COMP_OPS(int_type, max_value, min_value)

Enumerations

enum  binary_bit_ops {
  BBO_XOR,
  BBO_AND,
  BBO_IOR
}

Functions

IInteger i_positive_inf (void)
 These just dispatch to IInteger::i_positive_inf() ... More...

IInteger i_negative_inf (void)
IInteger i_signless_inf (void)
 COMP_OPS (long, LONG_MAX, LONG_MIN) COMP_OPS(unsigned long, ULONG_MAX, 0) COMP_OPS(int, INT_MAX, INT_MIN) COMP_OPS(unsigned int, UINT_MAX, 0) IInteger IInteger

Define Documentation

#define COMP_OPS( int_type,
max_value,
min_value)

Initial value:

\
    DO_COMPARISON(==, int_type, max_value, min_value) \
    DO_COMPARISON(!=, int_type, max_value, min_value) \
    DO_COMPARISON(<, int_type, max_value, min_value) \
    DO_COMPARISON(>, int_type, max_value, min_value) \
    DO_COMPARISON(<=, int_type, max_value, min_value) \
    DO_COMPARISON(>=, int_type, max_value, min_value)

#define CUTOFF   10

#define DO_COMPARISON( OP,
int_type,
max_value,
min_value)

#define NEG_INT_MIN   (((int)(INT_MAX + INT_MIN >= 0 ? 0 : INT_MIN)) - INT_MIN)

#define NEG_LONG_MIN

Initial value:

(((long)(LONG_MAX + LONG_MIN >= 0 ? 0 : LONG_MIN)) - \
                      LONG_MIN)

#define SIZE_T_MAX

Initial value:

((sizeof(size_t) == sizeof(unsigned long)) ? \
                       ULONG_MAX : \
                       ((sizeof(size_t) == sizeof(unsigned int)) ? \
                        UINT_MAX : \
                        ((sizeof(size_t) == sizeof(unsigned short)) ? \
                         USHRT_MAX : \
                         ((sizeof(size_t) == sizeof(unsigned char)) ? \
                          UCHAR_MAX : ULONG_MAX))))

#define SIZE_T_MIN   0

#define error( a,
b)   assert(0);


Enumeration Type Documentation

enum binary_bit_ops

Enumeration values:
BBO_XOR  
BBO_AND  
BBO_IOR  

Function Documentation

COMP_OPS ( long,
LONG_MAX,
LONG_MIN)

IInteger i_negative_inf ( void)

IInteger i_positive_inf ( void)

These just dispatch to IInteger::i_positive_inf() ...

and should disappear sometime

IInteger i_signless_inf ( void)


Generated at Mon Jul 31 13:41:39 2000 for NCI SUIF by doxygen 1.1.2 written by Dimitri van Heesch, © 1997-2000