I don't think so? Basically any kind of conditional branch like this needs to be replaced with bit-wise operators in C.

The OpenSSL code is doing this test by initially checking that the block size is `>=` the padding size to setup what is our `mismatch` set. It then ANDs out the bits as it goes through the data.