diff options
author | rdivacky <rdivacky@FreeBSD.org> | 2010-04-09 15:21:11 +0000 |
---|---|---|
committer | rdivacky <rdivacky@FreeBSD.org> | 2010-04-09 15:21:11 +0000 |
commit | b5eb021e182e9c7dc5f335c74b06385b24f88ce4 (patch) | |
tree | e9db6297693795aa90e7bd7065d5775edbdbd267 /usr.bin/xlint/lint1/lint1.h | |
parent | 558c6be838cc4659fd6a9e49b953f3e77a20db9b (diff) | |
download | FreeBSD-src-b5eb021e182e9c7dc5f335c74b06385b24f88ce4.zip FreeBSD-src-b5eb021e182e9c7dc5f335c74b06385b24f88ce4.tar.gz |
Rename the ALIGN macro to LINT_ALIGN so it does not clash with machine/param.h
Bump the alignment to 16bytes because lint1 memory allocator is used for
objects that require 16bytes alignment on amd64 (ie. val_t). This makes
lint1 work when compiled with compiler(s) that use SSE for memcpy on amd64.
(e.g. clang).
Approved by: ed (mentor)
Diffstat (limited to 'usr.bin/xlint/lint1/lint1.h')
-rw-r--r-- | usr.bin/xlint/lint1/lint1.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/xlint/lint1/lint1.h b/usr.bin/xlint/lint1/lint1.h index fe1a524..6cfcbb7 100644 --- a/usr.bin/xlint/lint1/lint1.h +++ b/usr.bin/xlint/lint1/lint1.h @@ -38,8 +38,8 @@ __FBSDID("$FreeBSD$"); #include "op.h" /* XXX - works for most systems, but the whole ALIGN thing needs to go away */ -#ifndef ALIGN -#define ALIGN(x) (((x) + 7) & ~7) +#ifndef LINT_ALIGN +#define LINT_ALIGN(x) (((x) + 15) & ~15) #endif /* |