delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-apps/2001/08/02/03:01:24

Mailing-List: contact cygwin-apps-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-apps-owner AT sourceware DOT cygnus DOT com
List-Subscribe: <mailto:cygwin-apps-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-apps/>
List-Post: <mailto:cygwin-apps AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-apps-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/lists.html#faqs>
Delivered-To: mailing list cygwin-apps AT sources DOT redhat DOT com
Date: Thu, 2 Aug 2001 03:00:51 -0400
Message-Id: <200108020700.DAA06930@envy.delorie.com>
X-Authentication-Warning: envy.delorie.com: dj set sender to dj AT envy DOT delorie DOT com using -f
From: DJ Delorie <dj AT delorie DOT com>
To: cwilson AT ece DOT gatech DOT edu
CC: binutils AT sources DOT redhat DOT com, cygwin-apps AT cygwin DOT com
In-reply-to: <3B68F80C.7030207@ece.gatech.edu> (message from Charles Wilson on
Thu, 02 Aug 2001 02:49:48 -0400)
Subject: Re: [RFA] pei386 dll: auto-import patch
References: <3B670087 DOT 7090102 AT ece DOT gatech DOT edu> <200108011735 DOT NAA32231 AT envy DOT delorie DOT com> <3B6846D2 DOT 9040206 AT ece DOT gatech DOT edu> <200108011847 DOT OAA32757 AT envy DOT delorie DOT com> <3B68C879 DOT 1070809 AT ece DOT gatech DOT edu> <200108020347 DOT XAA05289 AT envy DOT delorie DOT com> <3B68ED4B DOT 4080405 AT ece DOT gatech DOT edu> <200108020610 DOT CAA06564 AT envy DOT delorie DOT com> <3B68F80C DOT 7030207 AT ece DOT gatech DOT edu>

>  > Sorry, can't use snprintf.
> 
> Why not?

Not all systems have it.  Think "cross compilers".

> Like this?  ('course, you have to #include <math.h> for the ceil 
> function.  Perhaps multiples of 128 or 256 would be better...bit 
> shifting and masking is easy -- but not really portable...)

Hmmm... You can avoid float math if you use a power of two:

	size = (size + 127) & ~127;

> FWIW, all of my changes so far (including this one) compile at least. 
> :-)  I'll test actual operation <yawn> tomorrow.  (The version I 
> reported at 11:26EDT 1Aug01, and for which I put binaries on my website 
> at 1:07EDT 2Aug01, has been minimally tested in operation.  It's just 
> these most recent nit-picky changes that haven't been tested beyond "it 
> builds"...)

Understood.

- Raw text -


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