C programmers, help me understand. Why would you write it like that? Isn't the condition just if (ioctl != 0x22A004) ? Why the roundabout way to write this?
@codefren I wouldn’t be totally surprised if this is an artifact of some architecture-specific optimization done by the compiler. My assembly skills are extremely rusty, but I think theoretically it would replace something like a cmp+je with a sub+jz or something, and I can vaguely imagine ways the latter could be faster depending on hardware.
@jsh I don't know what the correct word is to express my feelings about this. Impressed? Horrified? Something in between. I mean, it's kernel code, so small optimizations make sense I guess, but holy shit.