Subject: Re: Libraries in standalone programs (pmax/ELF specific?)
To: Simon Burge <simonb@telstra.com.au>
From: Curt Sampson <cjs@cynic.net>
List: tech-kern
Date: 03/31/1999 08:10:56
On Wed, 31 Mar 1999, Simon Burge wrote:
> On the pmax, this generates slightly smaller code.
> ...
> - while (n-- > 0)
> + while (n--)
Well, I suppose that doesn't actually change what the test does,
since n is unsigned (at least I believe size_t is unsigned on all
machines), but it does change the op (from > to !=), which may
actually go and change the number of instructions on other platforms
as well, potentially the other way....
cjs
--
Curt Sampson <cjs@cynic.net> 604 801 5335 De gustibus, aut bene aut nihil.
The most widely ported operating system in the world: http://www.netbsd.org