[speex-dev] SIMD interest
Jean-Marc Valin
Jean-Marc.Valin at USherbrooke.ca
Sat Jan 17 14:49:24 PST 2004
> On Intel, there is a instruction you can use to find out what version of
> the CPU you have and by extension what level of vector support it
> provides. One problem is that this instruction isn't on every processor
> you are likely to run across, so you still have to do the try/catch method
> to determine if that instruction is available. Intel has written some code
> that does this into libpr0n, which is the native image library for
> Mozilla. You can take a peak at that if you like. They also discuss it in
> their software optimization manuals.
Well, cpu detection is one thing (the instruction is "cpuid"), but the
main problem is detecting that the OS supports the xmm resgisters.
That's where it was simpler to just try something and catch the illegal
instruction. Maybe there's a special register in the CPU where that the
OS sets when it supports SSE, but I haven't found it.
Jean-Marc
--
Jean-Marc Valin, M.Sc.A., ing. jr.
LABORIUS (http://www.gel.usherb.ca/laborius)
Université de Sherbrooke, Québec, Canada
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: Ceci est une partie de message numériquement signée.
Url : http://lists.xiph.org/pipermail/speex-dev/attachments/20040117/84f459be/signature.pgp
More information about the Speex-dev
mailing list