#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 |
|
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)
|
|
|
|
Initial value:
(((long)(LONG_MAX + LONG_MIN >= 0 ? 0 : LONG_MIN)) - \ LONG_MIN)
|
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))))
|
|
|
|
|
|
These just dispatch to IInteger::i_positive_inf() ...
and should disappear sometime
|