Changeset c00c08 in git for omalloc/mylimits.h.in
- Timestamp:
- May 17, 2001, 4:28:08 PM (23 years ago)
- Branches:
- (u'spielwiese', 'e7cc1ebecb61be8b9ca6c18016352af89940b21a')
- Children:
- fab80c2a5687924ffbb7cc8d22e9420dc3dc26ce
- Parents:
- 6bc0387cec951d062a258f06f99bc081f096f50e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
omalloc/mylimits.h.in
r6bc038 rc00c08 5 5 * Author: hannes (Hans Schoenemann) 6 6 * Created: 03/01 7 * Version: $Id: mylimits.h.in,v 1. 5 2001-04-30 09:01:59Singular Exp $7 * Version: $Id: mylimits.h.in,v 1.6 2001-05-17 14:28:08 Singular Exp $ 8 8 *******************************************************************/ 9 9 #ifndef MYLIMITS_H 10 #ifndef sgi11 10 #define MYLIMITS_H 12 #endif13 11 /******************************************************************* 14 12 * Defines which are set by configure … … 21 19 #define SIZEOF_DOUBLE 8 22 20 /* 23 * ISO C Standard: 4.14/2.2.4.2 Limits of integral types<limits.h>21 * ISO C Standard: 4.14/2.2.4.2 Limits of integral types <limits.h> 24 22 */ 25 23 … … 28 26 29 27 /* maximum value a `signed short int' can hold. */ 30 #define SHRT_MAX 28 #define SHRT_MAX 32767 31 29 32 30 /* Maximum value an `unsigned short int' can hold. (Minimum is 0.) */ 33 #define USHRT_MAX 31 #define USHRT_MAX 65535 34 32 35 33 /* Maximum/minimum value an `signed int' can hold. */ 36 #define INT_MAX 34 #define INT_MAX 2147483647 37 35 #define INT_MIN (-INT_MAX-1) 38 36 … … 40 38 /* Maximum value an `unsigned long int' can hold. (Minimum is 0.) */ 41 39 #if SIZEOF_LONG == 8 42 # define LONG_MAX 43 # define ULONG_MAX 40 # define LONG_MAX 9223372036854775807L 41 # define ULONG_MAX 18446744073709551615UL 44 42 #else 45 # define LONG_MAX 43 # define LONG_MAX 2147483647L 46 44 # ifdef __STDC__ 47 # define ULONG_MAX 45 # define ULONG_MAX 4294967295UL 48 46 # else 49 # define ULONG_MAX 47 # define ULONG_MAX 4294967295L 50 48 # endif 51 49 #endif 52 #define LONG_MIN 50 #define LONG_MIN (-LONG_MAX - 1L) 53 51 54 52 #endif
Note: See TracChangeset
for help on using the changeset viewer.