andioop@programming.dev to Programming Horror@programming.dev • edit-21 year agoGod I wish there was an easier way to do thisimagemessage-square23 fedilinkarrow-up194
arrow-up194imageGod I wish there was an easier way to do thisandioop@programming.dev to Programming Horror@programming.dev • edit-21 year agomessage-square23 Commentsfedilink
minus-squareNullPointer@programming.devhexbear5·1 year agohere is somewhat less: return (number % 2) == 0; linkfedilink
minus-squarehuf [he/him]hexbear4·1 year agojust check the last bit jesus christ, what is it with these expensive modulo operations?! return !(n&1); link
here is somewhat less:
return (number % 2) == 0;
just check the last bit jesus christ, what is it with these expensive modulo operations?!
return !(n&1);