nave@lemmy.zip to Lemmy Shitpost@lemmy.worldEnglish · 1 year agoI wishi.imgur.comimagemessage-square185fedilinkarrow-up1902arrow-down117
arrow-up1885arrow-down1imageI wishi.imgur.comnave@lemmy.zip to Lemmy Shitpost@lemmy.worldEnglish · 1 year agomessage-square185fedilink
minus-squareWilzax@lemmy.worldlinkfedilinkarrow-up21·1 year agofor an unsigned int, do (myNum & 1) == 0;
minus-squareTheBlue22@lemmy.blahaj.zonelinkfedilinkarrow-up4·1 year agoI haven’t done binary in years so ill just trust you this works
minus-squareGutek8134@lemmy.worldlinkfedilinkarrow-up8·edit-21 year agoChecks if least significant bit is equal to zero Binary reminder 1 - 1 2 - 10 3 - 11 4 - 100 5 - 101 I think you start to see a pattern
minus-squareTheBlue22@lemmy.blahaj.zonelinkfedilinkarrow-up2·1 year agoAh yeah, I do remember my basics of hardware classes.
for an unsigned int, do
(myNum & 1) == 0;
I haven’t done binary in years so ill just trust you this works
Checks if least significant bit is equal to zero
Binary reminder
1 - 1
2 - 10
3 - 11
4 - 100
5 - 101
I think you start to see a pattern
Ah yeah, I do remember my basics of hardware classes.
deleted by creator