diff options
| author | Doug Gilbert <dgilbert@us.ibm.com> | 2011-09-26 13:36:33 -0500 |
|---|---|---|
| committer | Douglas R. Gilbert <dgilbert@us.ibm.com> | 2011-10-25 11:16:20 -0500 |
| commit | 5ab488739184f2b2649193e3f9da695ee334d04f (patch) | |
| tree | 3d47e74b8dd290598527988adccff0ff57c72dc0 /src/include/util/align.H | |
| parent | d127ad9d985ffd7a42dba798bee66654242c4fe6 (diff) | |
| download | blackbird-hostboot-5ab488739184f2b2649193e3f9da695ee334d04f.tar.gz blackbird-hostboot-5ab488739184f2b2649193e3f9da695ee334d04f.zip | |
new HEAP manager to reduce fragmentation
Change-Id: Ibe725a43e6366d9113ec99df1cc6aafa7bbb770e
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/431
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com>
Diffstat (limited to 'src/include/util/align.H')
| -rw-r--r-- | src/include/util/align.H | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/util/align.H b/src/include/util/align.H index 7ff67ba38..55073256d 100644 --- a/src/include/util/align.H +++ b/src/include/util/align.H @@ -28,6 +28,9 @@ // Return a number >= input that is aligned on a 4-byte boundary #define ALIGN_4(u) ((u + 0x3ull) & ~0x3ull) +// Return a number >= input that is aligned on a 8-byte bounday +#define ALIGN_8(u) ((u + 0x7ull) & ~0x7ull) + // Return a number >= input that is aligned on a page boundary #define ALIGN_PAGE(u) ((u + (PAGESIZE-1)) & ~(PAGESIZE-1)) |

