OK, the CPU does all that crazy stuff but we're still assuming it doesn't cheat at CMOV?
More simply, once you have branch prediction and if you can implement instructions in terms of other instructions, it's simple to implement cmov as a test + conditional jump, and it's more work to make a non-predicting constant-time cmov.
-
-
I am afraid that argument valid for and/or with masks as well. And with -1 can be implemented as test + jmp, same as or with 0.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Say Intel wanted to pull a Transmeta… CMOV would be special indeed.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.