Need limits of signed and unsigned pointer-sized integers

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2334 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo 2009-12-14 13:48:27 +00:00
parent 6aa44f461e
commit fa0f3b582a
11 changed files with 36 additions and 24 deletions

View File

@ -74,7 +74,8 @@
/* A pointer is 4 bytes */
#define PTR_MIN 0x00000000
#define PTR_MAX 0xffffffff
#define PTR_MIN 0x80000000
#define PTR_MAX 0x7fffffff
#define UPTR_MAX 0xffffffff
#endif /* __ARCH_ARM_INCLUDE_LIMITS_H */

View File

@ -85,7 +85,8 @@
/* A pointer is 2 bytes */
#define PTR_MIN 0x0000
#define PTR_MAX 0xffff
#define PTR_MIN 0x8000
#define PTR_MAX 0x7fff
#define UPTR_MAX 0xffff
#endif /* __ARCH_HC_INCLUDE_HC12_LIMITS_H */

View File

@ -85,7 +85,8 @@
/* A pointer is 2 bytes */
#define PTR_MIN 0x0000
#define PTR_MAX 0xffff
#define PTR_MIN 0x8000
#define PTR_MAX 0x7fff
#define UPTR_MAX 0xffff
#endif /* __ARCH_HC_INCLUDE_HCS12_LIMITS_H */

View File

@ -72,7 +72,8 @@
* first byte holding data space information.
*/
#define PTR_MIN 0x000000
#define PTR_MAX 0xffffff
#define PTR_MIN 0x800000
#define PTR_MAX 0x7fffff
#define UPTR_MAX 0xffffff
#endif /* __ARCH_PJRC8051_INCLUDE_LIMITS_H */

View File

@ -76,7 +76,8 @@
/* A pointer is 2 bytes */
#define PTR_MIN 0x0000
#define PTR_MAX 0xffff
#define PTR_MIN 0x8000
#define PTR_MAX 0x7fff
#define UPTR_MAX 0xffff
#endif /* __ARCH_SH_INCLUDE_M16C_LIMITS_H */

View File

@ -76,7 +76,8 @@
/* A pointer is 4 bytes */
#define PTR_MIN 0x00000000
#define PTR_MAX 0xffffffff
#define PTR_MIN 0x80000000
#define PTR_MAX 0x7fffffff
#define UPTR_MAX 0xffffffff
#endif /* __ARCH_SH_INCLUDE_SH1_LIMITS_H */

View File

@ -74,7 +74,8 @@
/* A pointer is 4 bytes */
#define PTR_MIN 0x00000000
#define PTR_MAX 0xffffffff
#define PTR_MIN 0x80000000
#define PTR_MAX 0x7fffffff
#define UPTR_MAX 0xffffffff
#endif /* __ARCH_SIM_INCLUDE_LIMITS_H */

View File

@ -72,7 +72,8 @@
/* A pointer is 4 bytes */
#define PTR_MIN 0x00000000
#define PTR_MAX 0xffffffff
#define PTR_MIN 0x80000000
#define PTR_MAX 0x7fffffff
#define UPTR_MAX 0xffffffff
#endif /* __ARCH_Z16_INCLUDE_LIMITS_H */

View File

@ -76,11 +76,13 @@
*/
#ifdef CONFIG_EZ80_Z80MODE
#define PTR_MIN 0x0000
#define PTR_MAX 0xffff
#define PTR_MIN 0x8000
#define PTR_MAX 0x7fff
#define UPTR_MAX 0xffff
#else
#define PTR_MIN 0x000000
#define PTR_MAX 0xffffff
#define PTR_MIN 0x800000
#define PTR_MAX 0x7fffff
#define UPTR_MAX 0xffffff
#endif
#endif /* __ARCH_Z80_INCLUDE_EZ80_LIMITS_H */

View File

@ -70,7 +70,8 @@
/* A pointer is 2 bytes */
#define PTR_MIN 0x0000
#define PTR_MAX 0xffff
#define PTR_MIN 0x8000
#define PTR_MAX 0x7fff
#define UPTR_MAX 0xffff
#endif /* __ARCH_Z80_INCLUDE_Z8_LIMITS_H */

View File

@ -70,7 +70,8 @@
/* A pointer is 2 bytes */
#define PTR_MIN 0x0000
#define PTR_MAX 0xffff
#define PTR_MIN 0x8000
#define PTR_MAX 0x7fff
#define UPTR_MAX 0xffff
#endif /* __ARCH_Z80_INCLUDE_Z80_LIMITS_H */