delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2007/02/28/19:15:29

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
Date: Wed, 28 Feb 2007 19:15:24 -0500
Message-Id: <200703010015.l210FOi6004906@envy.delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp-workers AT delorie DOT com
In-reply-to:
<OF797A29F0 DOT 37D3281E-ON87257290 DOT 007B2DAD-87257290 DOT 007C2A0C AT seagate DOT com>
(Gordon DOT Schumacher AT seagate DOT com)
Subject: Re: Final version of gettimeofday() patch
References: <OF797A29F0 DOT 37D3281E-ON87257290 DOT 007B2DAD-87257290 DOT 007C2A0C AT seagate DOT com>
Reply-To: djgpp-workers AT delorie DOT com

> +      double secs;

We need to avoid floating point in libc, whenever possible.  Could
this be done with suitably scaled integer math?  CLOCKS_PER_SEC is
scaled by five to make it an integer.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019