OpenCores
URL https://opencores.org/ocsvn/eco32/eco32/trunk

Subversion Repositories eco32

[/] [eco32/] [trunk/] [lcc/] [include/] [symbolic/] [irix/] [limits.h] - Blame information for rev 94

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 hellwig
#ifndef __LIMITS
2
#define __LIMITS
3
 
4
#define CHAR_BIT        8
5
#define MB_LEN_MAX      1
6
 
7
#define UCHAR_MAX       0xff
8
#define USHRT_MAX       0xffff
9
#define UINT_MAX        (~0U)
10
#define ULONG_MAX       (~0UL)
11
 
12
#define SCHAR_MAX       0x7f
13
#define SHRT_MAX        0x7fff
14
#define INT_MAX         0x7fffffff
15
#define LONG_MAX        0x7fffffffL
16
 
17
#define SCHAR_MIN       (-SCHAR_MAX-1)
18
#define SHRT_MIN        (-SHRT_MAX-1)
19
#define INT_MIN         (-INT_MAX-1)
20
#define LONG_MIN        (-LONG_MAX-1)
21
 
22
#ifdef __CHAR_UNSIGNED__
23
#define CHAR_MAX        UCHAR_MAX
24
#define CHAR_MIN        0
25
#else
26
#define CHAR_MAX        SCHAR_MAX
27
#define CHAR_MIN        SCHAR_MIN
28
#endif
29
 
30
#endif /* __LIMITS */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.