Unwinding loops - (nf)

darryl at ism780.UUCP darryl at ism780.UUCP
Sat May 12 14:22:50 AEST 1984

ism780!darryl    May 10 16:47:00 1984

Very good, but if you want to do constant length moves, try this out:

#define move(to,from,count) {struct a {char x[count];}; \
			      *((struct a *)to) = *((struct a *)from); }

Our compiler will generate the structure assignment as a string move
instruction;  other versions may actually expand out all of the
moves in-line.  Not exactly clear, but it gets you what you REALLY
want.  Is it worth it?

	    Darryl Richman

More information about the Comp.lang.c mailing list