@andioop to Programming HorrorEnglish • edit-210 months agoGod I wish there was an easier way to do thisimagemessage-square55arrow-up1216arrow-down121
arrow-up1195arrow-down1imageGod I wish there was an easier way to do this@andioop to Programming HorrorEnglish • edit-210 months agomessage-square55
minus-squareMuchPineappleslinkfedilink8•edit-210 months agoThis is the way. Modulo takes too long to compute, bitwise compare should be a lot faster. return !(number & 0x1);
minus-squarerecursive_recursion [they/them]AlinkEnglish5•edit-210 months agooh shit yo this comment chain is pretty awesome, I learned a lot from this thanks!
This is the way. Modulo takes too long to compute, bitwise compare should be a lot faster.
return !(number & 0x1);
oh shit yo
this comment chain is pretty awesome, I learned a lot from this thanks!