mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-19 23:03:55 +00:00
_ALIGN has to return u_long, since pointers don't fit into u_int in
64-bit mips.
This commit is contained in:
parent
f107b0cc55
commit
d14d3e0866
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/projects/mips/; revision=198206
|
@ -44,10 +44,10 @@
|
|||
|
||||
/*
|
||||
* Round p (pointer or byte index) up to a correctly-aligned value for all
|
||||
* data types (int, long, ...). The result is u_int and must be cast to
|
||||
* data types (int, long, ...). The result is u_long and must be cast to
|
||||
* any desired pointer type.
|
||||
*/
|
||||
#define _ALIGNBYTES 7
|
||||
#define _ALIGN(p) (((u_int)(p) + _ALIGNBYTES) &~ _ALIGNBYTES)
|
||||
#define _ALIGN(p) (((u_long)(p) + _ALIGNBYTES) &~ _ALIGNBYTES)
|
||||
|
||||
#endif /* !_MIPS_INCLUDE__ALIGN_H_ */
|
||||
|
|
Loading…
Reference in a new issue