For completeness I attach, x86 and x64 code to flip bidimensional matrixes around X and Y axis.
This code is not optimized.
BTW, flipping is technically called reflexion. Reflexions + Transposition allow matrixes to be rotated 90, 180 and 270 degrees.
In the attachment is shown how to rotate 180ยบ. Be carefull, read the comment there.
Thank you. I was about to make another thread on those sort of matrices.
Starting rewritting the code right now :)