Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
mac1175
· 12y ago · 0 comments
Why not good ol' De Morgan's laws?
return !(raw[2]&(QR|AA|TC) == 0 && raw[3]&(Z|RCODE) == 0 )
Comments
[–]
rpsw
12y ago
The code probably goes on to to do additional checks.