source:
git/libpolys/misc/mylimits.h
@
d30a399
Last change on this file since d30a399 was d30a399, checked in by , 11 years ago | |
---|---|
|
|
File size: 891 bytes |
Rev | Line | |
---|---|---|
[3aae0e] | 1 | /* -*-c++-*- */ |
2 | /******************************************************************* | |
3 | * File: mylimits.h | |
4 | * Purpose: limits.h configuration for omalloc | |
5 | * Author: hannes (Hans Schoenemann) | |
6 | * Created: 03/01 | |
7 | *******************************************************************/ | |
[81bff55] | 8 | #ifndef _MYLIMITS_H |
[ccd333] | 9 | #define _MYLIMITS_H |
[81bff55] | 10 | |
[e554162] | 11 | /* Maximum/minimum value an `signed int' can hold. */ |
12 | // #define MAX_INT_VAL 2147483647 | |
13 | #ifndef MAX_INT_VAL | |
14 | #define MAX_INT_VAL (2147483647) | |
15 | #endif | |
16 | ||
17 | #ifndef MIN_INT_VAL | |
18 | #define MIN_INT_VAL (-MAX_INT_VAL-1) | |
19 | #endif | |
20 | ||
[81bff55] | 21 | |
[6fcb1b3] | 22 | // #define ULONG_MAX (~0UL) // ?? |
[d30a399] | 23 | #ifndef ULONG_MAX |
[a2cdd62] | 24 | #define ULONG_MAX (~0L) |
[d30a399] | 25 | #endif |
[a2cdd62] | 26 | |
[6fcb1b3] | 27 | // TODO: fixing the following BUG (!?) leads to wrong ring::bitmask |
28 | // #if ~0UL != 4294967295UL | |
[d30a399] | 29 | #ifndef LONG_MAX |
[ece30c] | 30 | #if ~0UL == 4294967295UL |
[a2cdd62] | 31 | #define LONG_MAX 9223372036854775807L |
32 | #else | |
33 | #define LONG_MAX 2147483647L | |
34 | #endif | |
[d30a399] | 35 | #endif |
[81bff55] | 36 | |
37 | #endif /* _MYLIMITS_H */ |
Note: See TracBrowser
for help on using the repository browser.