faster bcopy using duffs device

Doug Gwyn gwyn at smoke.BRL.MIL
Sat Sep 9 23:34:54 AEST 1989


In article <14174 at bloom-beacon.MIT.EDU> scs at adam.pika.mit.edu (Steve Summit) writes:
>(It seems it would have been nice to add this guarantee to memcpy
>rather than cluttering the library with another call...)

There are computers for which memcpy() can be compiled into very efficient
in-line code, while memmove() behavior required considerably more code.
Since there were valid arguments both ways, the committee decided to let
the programmer specify the preferred behavior instead of forcing one of
them on him.



More information about the Comp.lang.c mailing list