7/ well, ok, so the functions aren't given good names, but if a variable is named something like "input_data_ptr", that helps, right? no the variables are all single letters like a, b, c, d
-
Show this thread
-
8/ so anyway, my task is to change a certain data type from 32 bit to 64 bit except really, it's from 30 bit to 62 bit, because we use the top two bits to store metadata in a structure, or something, right? no, via bit twiddling
2 replies 0 retweets 12 likesShow this thread -
9/ well, at least you can single step into the functions that do the bit twiddling and watch them work, right? no, it's all implemented via
#defines, so you can't single step into the multi-line "functions"2 replies 0 retweets 11 likesShow this thread -
10/ well, at least you can rewrite the
#defines into functions so that you CAN single step through them, to see exactly where the memory corruption takes place, right? no why not?1 reply 0 retweets 8 likesShow this thread -
11/ answer: let me circle back to that later ok, but at least you can use the types that functions return to help you understand the code, right? no, the code freely casts from type to type
1 reply 0 retweets 11 likesShow this thread -
12/ well, you can look at those explicit casts and deduce something from them, right? no, the casts are implicit
2 replies 0 retweets 10 likesShow this thread -
13/ well, at least you know that none of the implicit casts lose any significant bits, or mangles sign bits into data bits, or vice versa, right, because the compiler warns in those cases? no, because that compiler warning has been turned off
2 replies 0 retweets 12 likesShow this thread -
Replying to @MorlockP
This tweet was the point at which I started laughing uncontrollably and then went and poured another bourbon.
1 reply 0 retweets 2 likes -
-
Replying to @MorlockP
Sounded like my sort of fun to be honest. Nock another shaft, and press onward!
1 reply 0 retweets 1 like
-
New conversation
-
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.