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.


_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to