diff options
author | Andi Kleen <ak@linux.intel.com> | 2011-10-29 01:02:35 +0000 |
---|---|---|
committer | Andi Kleen <ak@gcc.gnu.org> | 2011-10-29 01:02:35 +0000 |
commit | 3bc50163311275e8da17365a68e10a765a134867 (patch) | |
tree | 8f9e002586202119430d4bd8c63fee062dce5c6a /gcc/objc | |
parent | 25f0ea8135b221a7d560e9062d30d14be33c5582 (diff) | |
download | gcc-3bc50163311275e8da17365a68e10a765a134867.zip gcc-3bc50163311275e8da17365a68e10a765a134867.tar.gz gcc-3bc50163311275e8da17365a68e10a765a134867.tar.bz2 |
Use more efficient alignment in ggc
Jakub had some concerns about the performance of page alignments in
ggc-page, which use a hardware division instructions currently.
This patch changes them all to use a new PAGE_ALIGN macro, which
exploits that pages are a power of two.
gcc/:
2011-10-21 Andi Kleen <ak@linux.intel.com>
* ggc-page (PAGE_ALIGN): Add.
(alloc_page, ggc_pch_total_size, ggc_pch_this_base, ggc_pch_read):
Replace ROUND_UP with PAGE_ALIGN.
From-SVN: r180650
Diffstat (limited to 'gcc/objc')
0 files changed, 0 insertions, 0 deletions