[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] mktime: systematically normalize tm_isdst comparisons
From: |
Paul Eggert |
Subject: |
Re: [PATCH] mktime: systematically normalize tm_isdst comparisons |
Date: |
Mon, 31 Jan 2011 08:01:32 -0800 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 |
On 01/31/2011 06:47 AM, Eric Blake wrote:
> Is it any more efficient to use short-circuiting operators here (&&
> instead of &)?
I tried it both ways on x86-64 with GCC 4.5.2, and & generated a few
bytes less code than && did. I didn't investigate CPU-time performance,
but I expect it's also a bit faster with &, in the typical case.