lkml.org 
[lkml]   [1997]   [Feb]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: MMX for kernel
  Hi,
<stefan>
> Hmm. I've been thinking about this, and since MMX instructions use the
> FPU data paths, I'm not sure it's such a good idea to use MMX instructions.
> I read somewhere that some special instruction is used to kind of
> 'switch' between MMX and FPU mode, and that this takes some 50 cycles.
> Now, wouldn't that mean that we'd waste a lot of time here,
> for instance, if some programs make heavy use of FPU and at the same time
> makes a lot of system calls involving MMX instructions?
</stefan>

I not sure but :
isn't it the process of clearing the registers (cos MMX and FPU
use the sam ones) and clearing the pipeline that takes these cycles ?
And surely this would be done anyway during task switching so
the only extra overhead is if you mix types within one task.

Probably wrong,
J
------------------------------------------------------
Any opinions expressed in this message are entirely my
own and may not reflect the opinions of my employer.
------------------------------------------------------
I know you believe you understand what you think I
wrote. But I am not sure that you realise that what
you read is not what I meant.
------------------------------------------------------

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