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 -
-
Replying to @rep_stosq_void @oe1cxw
you can shift instead of multiplying by using octal-coded binary (%o).
1 reply 0 retweets 2 likes
Replying to @rep_stosq_void
but that would be less terrible..
7:54 AM - 22 Nov 2016
0 replies
0 retweets
2 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.