source: git/libpolys/misc/mylimits.h @ 6fcb1b3

spielwiese
Last change on this file since 6fcb1b3 was 6fcb1b3, checked in by Oleksandr Motsak <motsak@…>, 12 years ago
fixing 32bit via 64bit issues fix: removed typedef for long64 from ring.h as it duplicates the same block in auxiliary.h! TODO: fixing mylimits.h leads to lots of errors in runtime (ring:bitmask gets -1L!!?)
  • Property mode set to 100644
File size: 860 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 *  Version: $Id$
8 *******************************************************************/
9#ifndef _MYLIMITS_H
10#define _MYLIMITS_H
11
12/* Maximum/minimum value an `signed int' can hold. */
13// #define MAX_INT_VAL        2147483647
14#ifndef MAX_INT_VAL
15#define MAX_INT_VAL     (2147483647)
16#endif
17
18#ifndef MIN_INT_VAL
19#define MIN_INT_VAL     (-MAX_INT_VAL-1)
20#endif
21
22
23// #define ULONG_MAX (~0UL) // ??
24#define ULONG_MAX (~0L)
25
26// TODO: fixing the following BUG (!?) leads to wrong ring::bitmask
27// #if ~0UL != 4294967295UL
28#if ~0UL == 4294967295UL
29#define LONG_MAX 9223372036854775807L
30#else
31#define LONG_MAX 2147483647L
32#endif
33
34#endif /* _MYLIMITS_H */
Note: See TracBrowser for help on using the repository browser.