Re: faster strcpy()

Adam Heath (adam.heath@usa.net)
Fri, 24 Apr 1998 09:57:48 -0400 (EDT)


On Fri, 24 Apr 1998, Meelis Roos wrote:

> > while(*a++=*b++); perhaps?
>
> No, that's how it was before. This copies byte at time and is slow.
> memcpy is fast. If we could use the same technique as memcpy uses
> to copy strings and at the same time check the terminating 0...
> I don't see the answer myself, does anybody see?

I don't know c or i386 assembler, but there are string commands. Would one of
them do it? I don't have my assembler book handy. Is there a store and
continue while zero?

Adam

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu