The degree of creativity involved in writing a few comparison and
   conditional/unconditional jump instructions is too low to merit
   copyright, just as composing the sentence "This is silly." would
   be.

Well, depends... Duff's device is quite a smart way to unroll a loop,
and loop unrolling is quite trivial.

Saying out right that making a efficient switch statment is trivial,
is really not true, if you have a long one, you really wish to do it
as fast as possible, and might resort to vector tables or other stuff.

So switch statment optimistaions can be very creative, it isn't just a
bunch of jmps and conds lumped together...


_______________________________________________
gnu-misc-discuss mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnu-misc-discuss

Reply via email to