Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: Cowon D2 EABI

Re: Cowon D2 EABI

From: Rafaël Carré <rafael.carre_at_gmail.com>
Date: Tue, 15 Jun 2010 11:25:43 +0200

On Tue, 15 Jun 2010 11:19:45 +0200
pouly amaury <amaury.pouly_at_gmail.com> wrote:

> Writing it in assembly could be an option but which one is better
> between ugly inline assembly code and ugly C timing code ? :)

assembly which doesn't change code generated depending on the compiler
version, the OS, the gcc flags or the speed of wind

-- 
#define _ putchar
int x=0,i=0;char s[]="add`/Wji%XVci/";l(){while(x<4){int w=(x?x:x^3)*5
+(x>>1);_(((x++^3)?w:91<<1)+((13<<3)+2));}return x=0;}main(){l();while
(s[i]){char X=s[i++]+11;X=X==':'?' ':X;X-'0'?_(X):_(' ')+l();}_('C');}
//Rafaël Carré

Received on 2010-06-15

Page was last modified "Jan 10 2012" The Rockbox Crew
aaa