Which will be faster> = or>?

I was wondering if> is faster than> =? I tried to compare it, but either it takes 0 ms, or forever. I understand that the difference will be very small, but I have to work on a lot of pixels. Can someone tell me which is faster?

-7
source share
1 answer

Both comparisons will be compiled into machine commands, such as BLT (branch less) or BLE (branch less equal), which check some status bits, such as BLT: NV + -NV (negative, not overflowing or not negative and overflowing) or BLE: Z + NV + -NV (zero or negative, not overflow or not negative and overflow).
These instructions are usually executed exactly at the same time, so they are equally fast.

+3
source

Source: https://habr.com/ru/post/985358/


All Articles