News for hackers. Stuff that matters.
Re:How to check if any word is zero by drekipus on Thursday October 20, 2022 @04:44PM (#33280412)
You mean AND them together.

OR will give you non-zero If one of the inputs is non-zero.

Re:How to check if any word is zero by pklausler on Thursday October 20, 2022 @08:09PM (#33282543)
Neither of these are correct.
Re:How to check if any word is zero by drekipus on Thursday October 20, 2022 @10:53PM (#33283894)
oh gosh you're right. Why am I getting confused?

I was thinking he wants to check if any of them ARE zero.

OR'ing them together:

    0 || 1 || 0 || 0 = 1
    0 || 0 || 0 || 0 = 0
AND'ing them together:

    1 || 0 || 1 || 1 = 0
    1 || 1 || 1 || 1 = 1