mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 09:12:44 +00:00
Just use uintptr_t and intptr_t rather than requiring each arch to provide
explicit int/long typedefs.
This commit is contained in:
parent
63f1737128
commit
7ab17e6d01
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=146834
@ -41,30 +41,8 @@
|
||||
#include <string.h>
|
||||
#include "stand.h"
|
||||
|
||||
#ifdef __i386__
|
||||
typedef unsigned int iaddr_t; /* unsigned int same size as pointer */
|
||||
typedef int saddr_t; /* signed int same size as pointer */
|
||||
#endif
|
||||
#ifdef __alpha__
|
||||
typedef unsigned long iaddr_t; /* unsigned long same size as pointer */
|
||||
typedef long saddr_t; /* signed long same size as pointer */
|
||||
#endif
|
||||
#ifdef __powerpc__
|
||||
typedef unsigned int iaddr_t; /* unsigned int same size as pointer */
|
||||
typedef int saddr_t; /* signed int same size as pointer */
|
||||
#endif
|
||||
#ifdef __ia64__
|
||||
typedef unsigned long iaddr_t; /* unsigned long same size as pointer */
|
||||
typedef long saddr_t; /* signed long same size as pointer */
|
||||
#endif
|
||||
#ifdef __sparc64__
|
||||
typedef unsigned long iaddr_t; /* unsigned long same size as pointer */
|
||||
typedef long saddr_t; /* signed long same size as pointer */
|
||||
#endif
|
||||
#ifdef __arm__
|
||||
typedef unsigned long iaddr_t; /* unsigned int same size as pointer */
|
||||
typedef int saddr_t; /* signed int same size as pointer */
|
||||
#endif
|
||||
typedef uintptr_t iaddr_t; /* unsigned int same size as pointer */
|
||||
typedef intptr_t saddr_t; /* signed int same size as pointer */
|
||||
#include "zalloc_mem.h"
|
||||
|
||||
#define Prototype extern
|
||||
|
Loading…
Reference in New Issue
Block a user