Post Awdc9Q4Y9FznCAqT1E by [email protected] | |
More posts by [email protected] | |
Post #Awb11VVZy6pX7MvqqW by [email protected] | |
0 likes, 0 repeats | |
Occasionally I have a fixed-width number, and I need to know what its 2's c… | |
Post #Awb11VbxaNvzR9uwnA by [email protected] | |
0 likes, 0 repeats | |
@mcc printf '%x\n' $((-0x0102&0xffff))for some value of "conve… | |
Post #Awb15AvIRhHUQri5wm by [email protected] | |
0 likes, 0 repeats | |
@whitequark @mcc I was about to comment that one-line PERL executed from the co… | |
Post #Awdc9PfNeprXw74Mmu by [email protected] | |
0 likes, 0 repeats | |
@mcc Just want to mention that you could write a quick program, build it, and l… | |
Post #Awdc9PllH6y0Fu3SjY by [email protected] | |
0 likes, 0 repeats | |
@scottmichaud I move around between computers pretty frequently, so for some th… | |
Post #Awdc9PsUs4M2anCqES by [email protected] | |
0 likes, 0 repeats | |
@mcc Yup. And that's valid. | |
Post #Awdc9PyWVfAutU1ecq by [email protected] | |
0 likes, 0 repeats | |
@scottmichaud @mcc i write things like that in compiler explorer... :') | |
Post #Awdc9Q4Y9FznCAqT1E by [email protected] | |
0 likes, 0 repeats | |
@dotstdy @scottmichaud I also spend a surprising amount of time coding on the b… | |
Post #Awdc9pZbKwgkHiZ7OC by [email protected] | |
0 likes, 0 repeats | |
@mcc @scottmichaud no wifi on bus?? NA has it rough :( | |
Post #AwdcAkOa4ak2W2qccq by [email protected] | |
0 likes, 0 repeats | |
@mcc You can do it in your head, from the definition of two’s complement: ~x … | |
Post #AwdcAkUFjVHKndV9Sy by [email protected] | |
0 likes, 0 repeats | |
@jrose I prefer for computers to do arithmetic instead of me because they are m… | |
Post #AwdcB409B953K3ZOJk by [email protected] | |
0 likes, 0 repeats | |
Hm. It appears if you don't care so much about register size you can write:… |