Wireshark-commits: [Wireshark-commits] master 35098d2: Fix memory-alignment in the block allocator.

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Tue, 4 Mar 2014 17:09:42 +0000 (UTC)
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=35098d20a2fb7a635156d69e916e26352d8d935a
Submitter: Evan Huus (eapache@xxxxxxxxx)
Changed: branch: master
Repository: wireshark

Commits:

35098d2 by Evan Huus (eapache@xxxxxxxxx):

    Fix memory-alignment in the block allocator.
    
    The previous macro gave the correct alignment, but there was one case where it
    would add a whole block of unnecessary ALIGN_SIZE bytes. The new one is also
    slightly faster to compute.
    
    Benchmark win of about 3%.
    
    Change-Id: I5d8bad0f78dc0e383e14c2c7a951328a06400020
    Reviewed-on: https://code.wireshark.org/review/492
    Reviewed-by: Evan Huus <eapache@xxxxxxxxx>
    

Actions performed:

    from  75a67e6   Fix warnings introduced in g2965913
    adds  35098d2   Fix memory-alignment in the block allocator.


Summary of changes:
 epan/wmem/wmem_allocator_block.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)