zakarumych / rapid-qoi

Fast implementation of QOI format in Rust
Other
91 stars 1 forks source link

Fix definition of unlikely #9

Closed Starwort closed 2 years ago

Starwort commented 2 years ago

Previously, unlikely was defined the same as likely, and therefore suggesting to the optimiser the opposite of what it was supposed to; removing the ! inverts the condition and makes unlikely have its intended behaviour.

zakarumych commented 2 years ago

Thank you for the fix