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

The code probably goes on to to do additional checks.