X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave.korn@artimi.com>
To: "'Andrew Makhorin'" <mao@gnu.org>, "'Robin Walker'" <rdhw@cam.ac.uk>
Cc: <cygwin@cygwin.com>, "'Peter Rosin'" <peda@lysator.liu.se>
References: <13811889795.20070215071733@gnu.org> <er2v5b$nmj$1@sea.gmane.org>  <106982500.20070216041231@gnu.org>  <EE7C6A9E85BF2E3374078A69@qjunbur.quns.cam.ac.uk> <1433795387.20070216163624@gnu.org>
Subject: RE: strange bug in gettimeofday function
Date: Fri, 16 Feb 2007 15:24:26 -0000
Message-ID: <0d4001c751de$8cba5600$2e08a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
Content-Type: text/plain; 	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <1433795387.20070216163624@gnu.org>
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 16 February 2007 13:36, Andrew Makhorin wrote:


> The irony is that I usually give the same standard explanation about
> floating-point to people who do not understand that :) *Unfortunately*,
> you are right, and the difference really appears because the second
> value returned by get_time being computed with full 80-bit precision
> is kept in a fpu register during the comparison while the first value
> is stored and then loaded as a 64-bit value. 


  This is the infamous http://gcc.gnu.org/PR323.  See in particular comment
#60 for a solution (although IIRC _FPU_SETCW doesn't exist on cygwin... maybe
I'll see about adding it).


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

