summaryrefslogtreecommitdiff
path: root/ld/align.h
blob: ba33fb8ce2308c01e3d59f1d50d1ed83d40eaf5e (plain)
1
2
3
4
5
6
7
8
9
10
/* align.h - memory alignment requirements for linker */

/* Copyright (C) 1994 Bruce Evans */

#ifndef S_ALIGNMENT
# define align(x)
#else
# define align(x) ((x) = ((int) (x) + (S_ALIGNMENT-1)) & ~(S_ALIGNMENT-1))
				/* assumes sizeof(int) == sizeof(char *) */
#endif