Fastest wait until pin changes from LOW to HIGH

Two code snaps should be identical, could be compliler optimize "while" out, as there is nothing usefull in it. Checck in assembly, if there is any difference.