Re: [AD] Color convertors

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


In reply to Eric Botcazou <ebotcazou@xxxxxxxxxx>:
>I wrote:
>> Since we already figure out what the CPU is, why not have different
>> versions of code for different CPUs? We already do this to a limited
>> extent (cpu_mmx et al.), so this would simply be an extension.
>
>But we already have different versions !
>The blit() routines for example are (partially) written in pure 386 asm for
>Pentium, MMX asm for MMX-enabled CPUs and SSE asm for SSE-enabled CPUs. I
>don't think we could do much better.

I meant writing code for specific CPUs (for instance, an optimization on
a Pentium might be unnecessary on a i686, and might even slow down a
K6). This is just a minor extension to the current scheme. I thought of
doing this after following the discussion about how the new color
convertor code affected different CPUs.

Bye for now,
-- 
Laurence Withers, lwithers@xxxxxxxxxx
                http://www.lwithers.demon.co.uk/

Attachment: signature.asc
Description: PGP signature



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/