[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Move huge chunks of data in kernel...



On Thu, 2003-12-11 at 00:18, Sivasankaran, Vijay wrote:
> Hello,
> 
>        Anyone know how to move move huge chunks of data in x86 kenel?
>        I know I can use %esi and %edi as source and destination and
>        use ecx to specify the number of bytes. I am wondering if there
>        is any better way of doing it using SSE2 (128 bit) registers?
>        Imagine we don't have to worry abt context-switching or saving
> registers

why don't you use memcpy() which will be optimized for your platform ?
(and yes it can use mmx/sse2 etc if it is faster (which it btw not
really is unless you use weakly ordered stores, which have the
side-effect of clearing the cache so are not generally a win)

This is a digitally signed message part