pouët.net

Go to bottom

guess what this function does

category: general [glöplog]
jawohl, mein führer!
added on the 2008-12-24 15:35:13 by ryg ryg
No problem. Magic is now controlling all articles. :)
added on the 2008-12-24 15:37:02 by Adok Adok
well this one is most likely the simplest one here, but i can't think of anything else as this was right in front of me. variable names are obfuscated intentionally.

Code: float sex() { union { unsigned f; float r; }; s = ((((s ^ (s << 0x0D)) ^ (s >> 0x11)) ^ (s << 0x05)) >> 0x09) | 0x3F800000; return (f - 1.0f); }
added on the 2008-12-24 15:38:20 by decipher decipher
shit... make the first s f and you're there :)
added on the 2008-12-24 15:39:12 by decipher decipher
and of course that last f, r... man i should get some sleep :/
added on the 2008-12-24 15:39:57 by decipher decipher
Decipher: An XOR pattern?
added on the 2008-12-24 15:42:08 by Adok Adok
no
added on the 2008-12-24 15:43:22 by decipher decipher
Shouldn't it have some arguments too? ;)
It determines whether your stack is male or female.
added on the 2008-12-24 19:13:48 by doomdoom doomdoom
decipher: after staring at it for 10 seconds and sorting out the bugs... random generator for floats in the 0..1 range?
added on the 2008-12-24 22:00:49 by kb_ kb_
That function adds a thread at pouet's bbs. Works flawlessly I say!
added on the 2008-12-24 22:25:22 by Emod Emod
kb: you got it, although i was coding it at the same time i was posting it here for a tUM release, thus the bugs :)
added on the 2008-12-25 05:48:13 by decipher decipher

login

Go to top