qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] bitops: unify bitops_flsl with host-utils.h, ca


From: Richard Henderson
Subject: Re: [Qemu-devel] [PATCH] bitops: unify bitops_flsl with host-utils.h, call it bitops_clzl
Date: Mon, 04 Feb 2013 10:38:22 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2

On 2013-02-04 10:34, Peter Maydell wrote:
-       }
+    /* Both this function and the gcc builtin are undefined at 0, whereas
+       the host-utils functions return word-size at 0.  Thus we prefer the
+       gcc builtin as the closer match.  */

I think we should just fix the inconsistency rather than
retaining several similarly-named functions which have differing
corner-case behaviour.

As opposed to bitops_ctzl (-1) and host-utils ctzN (N) ?


r~




reply via email to

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