Author Topic: Fast matrix FlipX and FlipY  (Read 223 times)

aw27

  • Member
  • ****
  • Posts: 854
  • Let's Make ASM Great Again!
Fast matrix FlipX and FlipY
« on: April 20, 2017, 11:39:31 PM »
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.

guga

  • Member
  • ****
  • Posts: 826
  • Assembly is a state of art.
    • RosAsm
Re: Fast matrix FlipX and FlipY
« Reply #1 on: April 21, 2017, 04:15:27 AM »
Thank you. I was about to make another thread on those sort of matrices.

Starting rewritting the code  right now :)
Coding in Assembly requires a mix of:
80% of brain, passion, intuition, creativity
10% of programming skills
10% of alcoholic levels in your blood.

My Code Sites:
http://rosasm.freeforums.org
http://winasm.tripod.com