metal-cos/include/stdint.h

32 lines
746 B
C
Raw Permalink Normal View History

2014-02-12 21:47:13 +00:00
#ifndef _STDINT_H_
#define _STDINT_H_
2014-10-14 19:39:26 +00:00
#include <sys/types.h>
2014-07-04 00:36:31 +00:00
# define __INT64_C(c) c ## L
# define __UINT64_C(c) c ## UL
/* Limits of integral types. */
/* Minimum of signed integral types. */
# define INT8_MIN (-128)
# define INT16_MIN (-32767-1)
# define INT32_MIN (-2147483647-1)
# define INT64_MIN (-__INT64_C(9223372036854775807)-1)
/* Maximum of signed integral types. */
# define INT8_MAX (127)
# define INT16_MAX (32767)
# define INT32_MAX (2147483647)
# define INT64_MAX (__INT64_C(9223372036854775807))
/* Maximum of unsigned integral types. */
# define UINT8_MAX (255)
# define UINT16_MAX (65535)
# define UINT32_MAX (4294967295U)
# define UINT64_MAX (__UINT64_C(18446744073709551615))
2014-02-12 21:47:13 +00:00
#endif /* _STDINT_H_ */