qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Git head build problem (popcountl vs. system headers)


From: Peter Maydell
Subject: Re: [Qemu-devel] Git head build problem (popcountl vs. system headers)
Date: Thu, 25 Apr 2013 19:48:14 +0100

On 25 April 2013 19:36, Martin Husemann <address@hidden> wrote:
> But this still leaves two questions open:
>
>  - why not use an unsigned return value for your homegrown version?

We follow gcc's API, which returns int for __builtin_popcountl.

>  - would it be preferable to use official/optimized versions if
>    available?

We will -- assuming a reasonably recent gcc we will end
up compiling this to __builtin_popcount() and friends.

(We could maybe do with a bit more rationalisation in
this area, though.)

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]