x64 Assembly Tutorial 54: Floating Point Sign Masks (SIMD Floating Point ASM Examples)

Опубликовано: 07 Октябрь 2024
на канале: Creel
2,279
50

Today we'll look at three instructions, MOVMSKPS, MOVMSKPD and PMOVMSKB. They move the signs of elements in SSE registers into an x86 register. They are especially useful after the SIMD comparison instructions.

I made an error at the end, the final example's first move should be MOVAPS instead of MOVUPS and the data should be aligned to 16 bytes.

Support What's a Creel? on Patreon:
  / whatsacreel  

FaceBook:
  / whatsacreel  

Music Channel:
   / @creelsmusic5814  

Another channel with random things:
   / @ftlol6091  

Example at the end is from:
http://stackoverflow.com/questions/11...