Il 27/07/2012 18:05, Eric Blake ha scritto:
>> > +static inline int flsl(long val)
> But what good is flsl (I'm assuming you mean find-last-set, or the
> most-significant set bit), especially since there is no standardized
> fls() and no fls() in host-utils.h?
No idea why I thought that fls existe
On 07/24/2012 05:04 AM, Paolo Bonzini wrote:
> We can provide fast versions based on the other functions defined
> by host-utils.h. Some care is required on glibc, which provides
> ffsl already.
>
> Signed-off-by: Paolo Bonzini
> ---
> host-utils.h | 45 +++
We can provide fast versions based on the other functions defined
by host-utils.h. Some care is required on glibc, which provides
ffsl already.
Signed-off-by: Paolo Bonzini
---
host-utils.h | 45 +
1 file changed, 45 insertions(+)
diff --git a/host