On Tue, 15 Jun 2010 11:19:45 +0200 pouly amaury <[email protected]> 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é
signature.asc
Description: PGP signature
