[MPlayer-dev-eng] [OT] C-code Optimiation Contest

Florian-Wolfgang Stock f.stock at t-online.de
Tue Jul 15 17:23:57 CEST 2003


Michael Niedermayer <michaelni at gmx.at> writes:

>> > > PS: set DIM=528
>> >
>> > btw, do you have an idea why changing DIM from 512 helps so lot?
>>
> its effect of the cache
> [...]

its really amazing, with just changing the DIM from 512 to 516 my
routine is 33 times faster than the original (and you can speedup it
even more). 

Btw, how fast was the winning team?

Florian
-- 
int m,u,e=0;float l,_,I;main(){for(;1840-e;putchar((++e>907&&942>e?61-m:u)
["\t#*fg-pa.vwCh`lwp-e+#h`lwP##mbjqloE"]^3))for(u=_=l=0;79-(m=e%80)&&
I*l+_*_<6&&26-++u;_=2*l*_+e/80*.09-1,l=I)I=l*l-_*_-2+m/27.;}



More information about the MPlayer-dev-eng mailing list