dev builds
themes manual
device status forums
mailing lists
IRC bugs
dev guide

Rockbox mail archive

Subject: Re: Cowon D2 EABI

Re: Cowon D2 EABI

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

On Tue, 15 Jun 2010 11:19:45 +0200
pouly amaury <> 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 template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy