nave@lemmy.zip to Lemmy Shitpost@lemmy.worldEnglish · 1 year agoI wishi.imgur.comimagemessage-square148fedilinkarrow-up1850arrow-down117
arrow-up1833arrow-down1imageI wishi.imgur.comnave@lemmy.zip to Lemmy Shitpost@lemmy.worldEnglish · 1 year agomessage-square148fedilink
minus-squareWilzax@lemmy.worldlinkfedilinkarrow-up17·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-up6·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