Am 30.01.2013 18:46, schrieb Paolo Bonzini:
>
> ----- Messaggio originale -----
>> Da: "Stefan Weil" <s...@weilnetz.de>
>> A: "Paolo Bonzini" <pbonz...@redhat.com>
>> Cc: qemu-devel@nongnu.org, blauwir...@gmail.com, "peter maydell" 
>> <peter.mayd...@linaro.org>
>> Inviato: Mercoledì, 30 gennaio 2013 18:36:52
>> Oggetto: Re: [Qemu-devel] [PATCH] bitops: unify bitops_ffsl with the one in 
>> host-utils.h
>>
>> Am 30.01.2013 17:53, schrieb Paolo Bonzini:
>>> Fixes the build on Mac OS X, which has ffsl.
>>>
>>> Signed-off-by: Paolo Bonzini <pbonz...@redhat.com>
>>> ---
>>>  include/qemu/bitops.h     | 40
>>>  ++++++++++++++--------------------------
>>>  include/qemu/hbitmap.h    |  2 +-
>>>  include/qemu/host-utils.h | 25 -------------------------
>>>  util/hbitmap.c            |  2 +-
>>>  4 files changed, 16 insertions(+), 53 deletions(-)
>>>
>> This patch also fixes MinGW / MinGW-w64 builds which
>> don't have a prototype declaration for ffsl.
>>
>> Tested-by: Stefan Weil <s...@weilnetz.de>
>>
>> Nevertheless I wonder why you don't use gcc's __builtin_ffsl.
> Because I had no idea it existed until now. :)
> Do you know what version of GCC introduced it?
>
> Paolo
>

gcc.gnu.org/onlinedocs/gcc-3.3.6/gcc/Other-Builtins.html doesn't include it,
but http://gcc.gnu.org/onlinedocs/gcc-3.4.6/gcc/Other-Builtins.html does.

So I assume it was introduced by gcc-3.4.x.

Stefan


Reply via email to