lkml.org 
[lkml]   [1998]   [Apr]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: faster strcpy()
On Mon, Apr 27, 1998 at 10:28:02AM +0200, Mikael Klasson wrote:
> > > > 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?
> > >
> > > No. There's "rep movsX" (where X is b/w/d) for moving data but that one
> > > requires ecx to be initialized to the number of items to copy and
> > > doesn't care much about what it's copying. A "lodsd" and "stosd"
> >
> > What about repnz? What do you think it does?
>
> It's for use with cmpsX and scasX.

Yes, I realized that a couple seconds after sending the message. The
movsX instruction unfortunately doesn't set the right flags.

Vojtech

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

\
 
 \ /
  Last update: 2005-03-22 13:42    [W:0.061 / U:0.268 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site