Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Mar 1999 17:09:00 +1100 (EST)
From:      "Andrew Reilly" <andrew@lake.com.au>
To:        rdawes@ucsd.edu
Cc:        dillon@apollo.backplane.com, sjr@home.net, freebsd-hackers@FreeBSD.ORG
Subject:   Re: Use of "register" in code
Message-ID:  <19990316060900.41098.qmail@areilly.bpc-users.org>
In-Reply-To: <Pine.SOL.3.96.990315215657.19926A-100000@huntington>

next in thread | previous in thread | raw e-mail | index | archive | help

Richard J. Dawes said:
> On Tue, 16 Mar 1999, Andrew Reilly wrote:
> 
>> Of course it is.  It's one of the principle reasons that Fortran can
>> still generate tighter inner loop code than straight-forward C.  The
>> handbook of numerical C code says in big letters: fetch to register
>> temporaries if a value is to be re-used, and use register variables for
>> all pointers and indices.
> 
> Umm, are you refering to "Numerical Recipes in C"?  That tome is well-
> known for its out-of-date C advice, not to mention obsolete algorithms.
> 
> Just a tip.  Sorry for going off-topic.

No, just my own accumulated numerical C lore.  I don't own a copy of
Numerical Recipes in C, mostly because every time I've looked something
up in someone else's copy the code was awful.

Looks like my accumulated C lore needs some updating.  Thanks to
everyone who's pointed out the error of my ways...

-- 
Andrew



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990316060900.41098.qmail>