[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] [PATCH] Smooth Scaling v2 (pygame.transform.smoothscale)



On Saturday 23 June 2007 11:57:52 am Luke Paireepinart wrote:
> Richard Goedeken wrote:
> > After much searching, I found the 'magic' preprocessor definitions to
> > determine compiler and CPU architecture.  They are "__GNUC__",
> > "__i386__", and "__x86_64__".  This should work under Linux, mingw, OSX,
> > etc; basically any platform with GCC and an MMX-capable CPU.  I have
> > tested and verified that it works under Gentoo/x86_64 and
> > Ubuntu7.04/i686.
> >
> > The attached zip contains a 'transform.c' which is based on v1.7.1 and
> > includes the new smoothscale function with compile-time checks to
> > include the MMX routines for compilation and a run-time check via
> > SDL_cpuinfo.  The modified 'config.py' is no longer needed.
>
> So are you still going to use runtime checks for us Windoze folks?
> I was wondering- MMX doesn't have anything to do with processor
> architecture as far as 32-bit vs 64-bit, does it?
> I thought it was just a feature some processors had and some didn't.  Or
> is that what the i in 'i386' specifies? that it has MMX?
> Thanks,
> -Luke

the "i" in i386 means "intel" :P

i386 is older than I am. Ok, maybe not, but it's pretty OLD. However, every 
computer supports it, pretty much. i4,5, and 686 are upgrades to i386. If I 
remember correctly, i486 introduced MMX.