Messages in this thread | | | Date | Mon, 27 Apr 1998 12:34:52 +0200 | From | Vojtech Pavlik <> | Subject | Re: 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
| |