Changeset 80d772 in git


Ignore:
Timestamp:
Dec 5, 2012, 3:14:46 PM (12 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '0bc2210f8055033868008a3836878db65ec6f89e')
Children:
07ff965ddd552fe3a981f417b2da928dca53a8f2
Parents:
5d6ede284ce6c0064acbc39ec074ebdcdbfd9adf
Message:
fix: mylimits.h
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/misc/mylimits.h

    r5d6ede r80d772  
    99#define _MYLIMITS_H
    1010
    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 #ifndef ULONG_MAX
    24 #define ULONG_MAX (~0UL)
    25 #endif
    26 
    27 // TODO: fixing the following BUG (!?) leads to wrong ring::bitmask
    28 // #if ~0UL != 4294967295UL
    29 #ifndef LONG_MAX
    30 #if ULONG_MAX != 4294967295UL
    31 #define LONG_MAX 9223372036854775807L
    32 #else
    33 #define LONG_MAX 2147483647L
    34 #endif
    35 #endif
     11#include <limits.h>
     12#define MAX_INT_VAL 0x7fffffff
    3613
    3714#endif /* _MYLIMITS_H */
Note: See TracChangeset for help on using the changeset viewer.