Y
Hacker News
new
|
ask
|
show
|
jobs
by
mac1175
4363 days ago
Why not good ol' De Morgan's laws?
return !(raw[2]&(QR|AA|TC) == 0 && raw[3]&(Z|RCODE) == 0 )
1 comments
rpsw
4363 days ago
The code probably goes on to to do additional checks.
link