> Perhaps someone could explain to me what it is at all---I have never
> heard of it. (Then again, I tend to avoid C.)
see http://www.lysator.liu.se/c/duffs-device.html for details and history.
My nutshell version, it's a particular C idiom for unrolling loops that is very
efficient in some circumstances. It's not clear to me that a Fortran equivalent
is particularly interesting or valuable per se. More often than not, Fortran
processors are able to do fairly elaborate loop rolling (un and re, interchanges,
and etc.) ...
--
Keith H. Bierman [log in to unmask] [log in to unmask]
Sun Microsystems Laboratories | [log in to unmask]
901 San Antonio Road UMTV 29-234 | [log in to unmask]
Palo Alto, California 94303 | 650 336-2121 voice 650 336 0893 fax
Copyright 2000
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|