git: kmalloc: No need to call fls if the size is already power-of-2 aligned

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Wed Oct 10 05:51:16 PDT 2012


commit 18042a752e6d15b37a86b9fe03d8d2a15b2aab7d
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Wed Oct 10 20:40:57 2012 +0800

    kmalloc: No need to call fls if the size is already power-of-2 aligned
    
    Reduce code complexity

Summary of changes:
 sys/kern/kern_slaballoc.c |   10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/18042a752e6d15b37a86b9fe03d8d2a15b2aab7d


-- 
DragonFly BSD source repository



More information about the Commits mailing list