cm0002@lemmy.world to Programmer Humor@programming.dev · 1 day agoTell me the truth ...piefed.jeena.netimagemessage-square112linkfedilinkarrow-up11.03Karrow-down115
arrow-up11.02Karrow-down1imageTell me the truth ...piefed.jeena.netcm0002@lemmy.world to Programmer Humor@programming.dev · 1 day agomessage-square112linkfedilink
minus-squareanotherandrew@lemmy.mixdown.calinkfedilinkEnglisharrow-up1·edit-212 hours agoWhy not if (f & (F_1 | F_3)) {? I use this all the time in embedded code. edit: never mind; you’re checking for both flags. I’d probably use (f & (F_1 | F_3)) == (F_1 | F_3) but that’s not much different than what you wrote.
Why not
if (f & (F_1 | F_3)) {
? I use this all the time in embedded code.edit: never mind; you’re checking for both flags. I’d probably use
(f & (F_1 | F_3)) == (F_1 | F_3)
but that’s not much different than what you wrote.