Re : [PATCH 4/8] lib: Add prototype declarations in lib/clz_ctz.c

2014-02-26 Thread 민찬호
> -Original Message- > From: Rashika Kheria [mailto:rashika.khe...@gmail.com] > Sent: Tuesday, February 25, 2014 4:46 PM > To: linux-kernel@vger.kernel.org > Cc: Andrew Morton; Rashika Kheria; Chanho Min; j...@joshtriplett.org > Subject: [PATCH 4/8] lib: Add prototype declarations in lib/c

Re: [PATCH] lib: add weak __clzsi2()/__clzdi2() functions

2013-05-01 Thread 민찬호
>No, the link errors are for __ctzdi2, not __clzdi2. >__ctzdi2 can be implemented using __ffs(). >> How's about we stop using __builtin_ctz[ll]() altogether? Use N-fls()? > >That was my first suggestion ;-) > Do we remove existing __builtin_ct[l]z? Some architecture's __builtin_clz will be more o