typedef struct {char a[9];} t; t b(uint8_t x) { t s; for (int i=8; i>0; x>>=1) s.a[--i]=48+(x&1); s.a[8]=0; return s; }
-
-
Replying to @stevecheckoway @johnregehr
fits in a tweet and almost as terrible to read.
1 reply 1 retweet 3 likes -
Replying to @stevecheckoway @johnregehr
Is this a competition now? I'm very competitive when it comes to terrible code..pic.twitter.com/I9e0iJK1mH
3 replies 1 retweet 8 likes -
Another version of this function that provides excellent job security. (Spending far too much time on this. :)pic.twitter.com/ONQldyCVZ6
1 reply 0 retweets 2 likes -
Btw, this only works because the LSB bit pattern of (dec) 10, 100, 1000, ... is 0, 00, 000, ...
1 reply 0 retweets 2 likes
code as text file: http://svn.clifford.at/handicraft/2016/bindec/bindec.c …
5:38 AM - 23 Nov 2016
0 replies
0 retweets
0 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.