[fpc-pascal] Vector code
Marco van de Voort
fpc at pascalprogramming.org
Sat May 2 13:30:49 CEST 2020
Op 2020-05-02 om 07:46 schreef Adriaan van Os:
>
>> No, but you can ask questions here. I've done some minor x86_64
>> assembler work for image processing. Things like format conversions,
>> uniform lighting, rotate, erosion/dilation etc.
>
> Thanks for offering. I am particularly interested in knowing the
> tricks that can be done with masking, e.g. to prevent branching. In
> the first place to get an idea what can be done with vector code and
> what not. I guess I should read the Intel and AMD processor docs first.
>
Well, saturation often avoids branches, as well as built in min/max
instructions.
pcmpgtb and friends are kind of the x86 setcc like instructions. Store
the result of a comparison(s) to a register.
More information about the fpc-pascal
mailing list