On 01/30/2011 12:02 AM, Paul Eggert wrote:
> +/* Return 1 if the values A and B differ according to the rules for
> +   tm_isdst: A and B differ if one is zero and the other positive.  */
> +static int
> +isdst_differ (int a, int b)
> +{
> +  return (!a != !b) & (0 <= a) & (0 <= b);

Is it any more efficient to use short-circuiting operators here (&&
instead of &)?

-- 
Eric Blake   ebl...@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to