1989-10-23 10:35:56 +00:00
|
|
|
/*
|
|
|
|
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
|
|
|
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
|
|
|
*/
|
1994-06-24 14:02:31 +00:00
|
|
|
/* $Id$ */
|
1989-10-23 10:35:56 +00:00
|
|
|
/* COMPILER ARITHMETIC */
|
|
|
|
|
|
|
|
/* Normally the compiler does its internal arithmetics in longs
|
|
|
|
native to the source machine, which is always good for local
|
|
|
|
compilations, and generally OK too for cross compilations
|
|
|
|
downwards and sidewards. For upwards cross compilation and
|
|
|
|
to save storage on small machines, SPECIAL_ARITHMETICS will
|
|
|
|
be handy.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/* All preprocessor arithmetic should be done in longs.
|
|
|
|
*/
|
|
|
|
#define arith long /* dummy */
|
2017-10-29 21:45:10 +00:00
|
|
|
|
|
|
|
#define arith_size (sizeof(arith))
|
|
|
|
#define arith_sign ((arith) 1 << (arith_size * 8 - 1))
|
|
|
|
#define max_arith (~arith_sign)
|