Remove ALIGNBYTES and ALIGN from <sys/param.h>

There are only three users of bionic definition of ALIGN and keeping it
in sys/param.h polutes the namespace.

I inline the definition in the the three places that's used.

Bug: 13400663
Change-Id: I565008e8426c38ffb07422f42cd8e547d53044e9
This commit is contained in:
Calin Juravle
2014-03-20 15:21:32 +00:00
parent 849e162d3b
commit c20de90287
4 changed files with 9 additions and 10 deletions

View File

@@ -34,16 +34,6 @@
#define MAXPATHLEN PATH_MAX
#define MAXSYMLINKS 8
#if __LP64__
#define ALIGNBYTES 7
#else
#define ALIGNBYTES 3
#endif
#ifndef ALIGN
#define ALIGN(p) (((uintptr_t)(p) + ALIGNBYTES) &~ ALIGNBYTES)
#endif
/* Macros for counting and rounding. */
#ifndef howmany
#define howmany(x, y) (((x)+((y)-1))/(y))