Re: [Qemu-devel] [PATCH 36/47] host-utils: add ffsl and flsl

2012-07-30 Thread Paolo Bonzini
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

Re: [Qemu-devel] [PATCH 36/47] host-utils: add ffsl and flsl

2012-07-27 Thread Eric Blake
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 +++

[Qemu-devel] [PATCH 36/47] host-utils: add ffsl and flsl

2012-07-24 Thread Paolo Bonzini
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