Journal Rupert's Journal: Bug fix to sig 10
GCC didn't like my sig. Thanks to lemonjus and jungd for pointing this out.
New sig:
--
int x=354583890,y=43836;main(){putchar(x);x>>=y&7;y>>= 3;return y?main():0;}
GCC didn't like my sig. Thanks to lemonjus and jungd for pointing this out.
New sig:
--
int x=354583890,y=43836;main(){putchar(x);x>>=y&7;y>>= 3;return y?main():0;}
"Gravitation cannot be held responsible for people falling in love." -- Albert Einstein
what's your email? (Score:1)
spam1@sonous.com
thanks!
Re:what's your email? (Score:1)
it's the last 7 bits of that number that putchar, or printf, or whatever print function spits out, so even though it's a big binary number, the app doesn't care, and just chops off the first 7 bits to use them as the character.
did you come up with this yourself?
-lev
Re:what's your email? (Score:2)
[ Rupert, have you ever actually been to England? :-) ]
lev, to answer your question, I can attest to the fact that Rupert is indeed clever enough to have come up with this on his own. That's the fun of .sig programs -- thinking of a clever trick to use for compression, and/or using the side effects of a function or compiler instruction for your own purpose. And recursion is always fun... The arbitrary limit of 120 bytes helps make it a bit of a challenge.
AHAH (Score:1)
x=1317720403
y=326114
x contains the characters, y contains the number of bit shifts
i did my calculations using python and a calculator, i never knew you could package up an list of numbers into one number using AND and bit shifts, very interesting
Re:AHAH (Score:1)
Inspiration (Score:1)
Re:Inspiration (Score:1)
Re:Inspiration (Score:1)
Re:Inspiration (Score:1)
Re:Inspiration (Score:2)