@[email protected] to [email protected]English • 2 months agoRulelemmy.blahaj.zoneimagemessage-square57fedilinkarrow-up1386arrow-down16
arrow-up1380arrow-down1imageRulelemmy.blahaj.zone@[email protected] to [email protected]English • 2 months agomessage-square57fedilink
minus-square@[email protected]linkfedilink4•2 months agoNot all ARM CPUs support mod operations. It’s better to use bit operations. Check if the last bit is set. If set it’s odd else it’s even.
If number%2 == 0: return("Even") Else: return("odd")
Not all ARM CPUs support mod operations. It’s better to use bit operations. Check if the last bit is set. If set it’s odd else it’s even.
Deleted