spielwiese
Last change
on this file since 72f1e4b was
6ce030f,
checked in by Oleksandr Motsak <motsak@…>, 11 years ago
|
removal of the $Id$ svn tag from everywhere
NOTE: the git SHA1 may be used instead (only on special places)
NOTE: the libraries Singular/LIB/*.lib still contain the marker due to our current use of svn
|
-
Property mode set to
100644
|
File size:
842 bytes
|
Line | |
---|
1 | /* -*-c++-*- */ |
---|
2 | /******************************************************************* |
---|
3 | * File: mylimits.h |
---|
4 | * Purpose: limits.h configuration for omalloc |
---|
5 | * Author: hannes (Hans Schoenemann) |
---|
6 | * Created: 03/01 |
---|
7 | *******************************************************************/ |
---|
8 | #ifndef _MYLIMITS_H |
---|
9 | #define _MYLIMITS_H |
---|
10 | |
---|
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 | |
---|
21 | |
---|
22 | // #define ULONG_MAX (~0UL) // ?? |
---|
23 | #define ULONG_MAX (~0L) |
---|
24 | |
---|
25 | // TODO: fixing the following BUG (!?) leads to wrong ring::bitmask |
---|
26 | // #if ~0UL != 4294967295UL |
---|
27 | #if ~0UL == 4294967295UL |
---|
28 | #define LONG_MAX 9223372036854775807L |
---|
29 | #else |
---|
30 | #define LONG_MAX 2147483647L |
---|
31 | #endif |
---|
32 | |
---|
33 | #endif /* _MYLIMITS_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.