mirror of https://github.com/zrafa/xinu-avr.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
1.3 KiB
31 lines
1.3 KiB
|
6 years ago
|
/**
|
||
|
|
* @file limits.h
|
||
|
|
*
|
||
|
|
* $Id: limits.h 2020 2009-08-13 17:50:08Z mschul $
|
||
|
|
*/
|
||
|
|
/* Embedded Xinu, Copyright (C) 2009. All rights reserved. */
|
||
|
|
|
||
|
|
#ifndef _LIMITS_H_
|
||
|
|
#define _LIMITS_H_
|
||
|
|
|
||
|
|
#define CHAR_BIT 8 /**< bits in a char */
|
||
|
|
#define CHAR_MAX 127 /**< maximum value of char */
|
||
|
|
#define CHAR_MIN (-128) /**< minimum value of char */
|
||
|
|
#define SCHAR_MAX 127 /**< maximum value of signed char */
|
||
|
|
#define SCHAR_MIN (-128) /**< minimum value of signed char */
|
||
|
|
#define UCHAR_MAX 255 /**< maximum value of unsigned char */
|
||
|
|
|
||
|
|
#define INT_MAX 2147483647 /**< maximum value of int */
|
||
|
|
#define INT_MIN (-INT_MAX-1) /**< minimum value of int */
|
||
|
|
#define UINT_MAX (2U*INT_MAX+1) /**< maximum value of unsigned int */
|
||
|
|
|
||
|
|
#define LONG_MAX 2147483647 /**< maximum value of int32 */
|
||
|
|
#define LONG_MIN (-LONG_MAX-1) /**< minimum value of int32 */
|
||
|
|
#define ULONG_MAX (2UL*LONG_MAX+1) /**< maximum value of unsigned int32 */
|
||
|
|
|
||
|
|
#define SHRT_MAX 32767 /**< maximum value of int16 */
|
||
|
|
#define SHRT_MIN (-SHRT_MAX-1) /**< minimum value of int16 */
|
||
|
|
#define USHRT_MAX 65535 /**< maximum value of unsigned int16 */
|
||
|
|
|
||
|
|
#endif /* _LIMITS_H_ */
|