Re: TCP checksum unrolling


decvax!utzoo!henry@ucbvax.Berkeley.EDU
Wed, 21 Oct 87 00:31:43 edt


> ... Some C compilers won't accept the wierd syntax below; or maybe I
> should point out, as you wretch on the floor, that there is at least ONE
> c compiler that DOES accept this syntax.

This particular piece of ugliness (switch labels inside a loop, for loop
unrolling) is known as Duff's Device, and is legitimate C that any correct
C compiler is supposed to accept.

                                Henry Spencer @ U of Toronto Zoology
                                {allegra,ihnp4,decvax,pyramid}!utzoo!henry



This archive was generated by hypermail 2.0b3 on Thu Mar 09 2000 - 14:39:35 GMT