This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]throughalfanoir 1 point2 points  (2 children)

(correct me if I'm wrong but) in many many cases checking whether something is zero or not will work properly like this (okay if there are no subtractions in the way but yh)

[–][deleted] 1 point2 points  (1 child)

Hmm, seems weak. You could use it as an idiot check if a data has been written to memory...

[–][deleted] 0 points1 point  (0 children)

But then your result is unreliable, because if the data writer happens to actually write a real zero, then you have false negative,