Efficient scather-gather-copy
- From: Hynek Schlawack <spamtrap@xxxxxxxxxx>
- Date: Thu, 13 Apr 2006 15:03:20 +0200
Hi,
I'm in the unlucky situation to convert mails from the "\n"-lineendings
to "\r\n"-ones.
I'm doing the rest of the program in C, but I hope to be able to use
some special CPU-capatibilities via inline-assembly to make this
_really_ fast.
If I'm not mistaken, I have to count the lines, alloc
sizeof(mail)+num_of_lines(mail), copy each line seperately with a space
between them to the buffer and replace the "\n" through "\r\n".
Is there something MMX, SSE et. al. could do for me? I'm pretty sure to
have seen a MMX-powered memcpy somewhere so I think it should be able to
help me at least a bit. It would be perfect to be able to supply a array
of sources and destinations, but I guess that would be wishful thinking.
Could anyone point me in the right direction?
TIA,
-hs
.
- Follow-Ups:
- Re: Efficient scather-gather-copy
- From: [Jongware]
- Re: Efficient scather-gather-copy
- From: Jerry Coffin
- Re: Efficient scather-gather-copy
- From: Mark Whitlock
- Re: Efficient scather-gather-copy
- Prev by Date: Re: Arithmetics Operations!
- Next by Date: Re: view mbr grub
- Previous by thread: Can you help me make a PS2 mouse driver for a new controller?
- Next by thread: Re: Efficient scather-gather-copy
- Index(es):