blob: 02bbe43866f6aceebb7f47a03f7ce923d41a5aee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* align.h - memory alignment requirements for linker */
/* Copyright (C) 1994 Bruce Evans */
#ifndef S_ALIGNMENT
# define align(x)
#else
# define align(x) ((x)=(void*) \
((char *)(x) + ((S_ALIGNMENT-(int)(x)) & (S_ALIGNMENT-1))))
#endif
/* * assumes sizeof(int) == sizeof(char *) *
# define align(x) ((x) = (void *)(((int) (x) + (S_ALIGNMENT-1)) & ~(S_ALIGNMENT-1)))
*/
|