Re: [PATCH V3] blackfin: optimize ffz, __ffs, ffs, __fls, and fls functions

2016-04-15 Thread Zhaoxiu Zeng
在 2016/4/16 0:08, Joe Perches 写道: > On Fri, 2016-04-15 at 23:20 +0800, zengzhao...@163.com wrote: >> From: Zeng Zhaoxiu >> >> blackfin has popcount instruction (ONES), we can do the efficient >> computing (ffz, __ffs, ffs, __fls, and fls) use this instruction. > [] >> diff

Re: [PATCH V3] blackfin: optimize ffz, __ffs, ffs, __fls, and fls functions

2016-04-15 Thread Zhaoxiu Zeng
在 2016/4/16 0:08, Joe Perches 写道: > On Fri, 2016-04-15 at 23:20 +0800, zengzhao...@163.com wrote: >> From: Zeng Zhaoxiu >> >> blackfin has popcount instruction (ONES), we can do the efficient >> computing (ffz, __ffs, ffs, __fls, and fls) use this instruction. > [] >> diff --git

Re: [PATCH V3] blackfin: optimize ffz, __ffs, ffs, __fls, and fls functions

2016-04-15 Thread Joe Perches
On Fri, 2016-04-15 at 23:20 +0800, zengzhao...@163.com wrote: > From: Zeng Zhaoxiu > > blackfin has popcount instruction (ONES), we can do the efficient > computing (ffz, __ffs, ffs, __fls, and fls) use this instruction. [] > diff --git

Re: [PATCH V3] blackfin: optimize ffz, __ffs, ffs, __fls, and fls functions

2016-04-15 Thread Joe Perches
On Fri, 2016-04-15 at 23:20 +0800, zengzhao...@163.com wrote: > From: Zeng Zhaoxiu > > blackfin has popcount instruction (ONES), we can do the efficient > computing (ffz, __ffs, ffs, __fls, and fls) use this instruction. [] > diff --git a/arch/blackfin/include/asm/bitops.h >

[PATCH V3] blackfin: optimize ffz, __ffs, ffs, __fls, and fls functions

2016-04-15 Thread zengzhaoxiu
From: Zeng Zhaoxiu blackfin has popcount instruction (ONES), we can do the efficient computing (ffz, __ffs, ffs, __fls, and fls) use this instruction. Adapted from "https://en.wikipedia.org/wiki/Find_first_set; and arch/ia64/include/asm/bitops.h. Changes to V2: - Fix

[PATCH V3] blackfin: optimize ffz, __ffs, ffs, __fls, and fls functions

2016-04-15 Thread zengzhaoxiu
From: Zeng Zhaoxiu blackfin has popcount instruction (ONES), we can do the efficient computing (ffz, __ffs, ffs, __fls, and fls) use this instruction. Adapted from "https://en.wikipedia.org/wiki/Find_first_set; and arch/ia64/include/asm/bitops.h. Changes to V2: - Fix build errors Changes to