Code samples |
"There can be many reasons why you may want reduce the number of jumps, calls and
returns:
|
Copyright © 1996, 2000 by Agner Fog.
|
These samples illustrate a few tricks on how to avoid conditional jumps with help of bitwise logical instructions. This code compares intensities of two pixel pairs and verifies that the difference is within the threshold. This is the real fragment of SpotRemover's code that implements the intensity/color locking. |