1)You need an MMX function that interleaves the two lower-order bytes of two integers and outputs a full-length integer.
For example:
word1: 0x 00 00 AC 4D
word2: 0x 00 00 73 B1
Yields:
output: 0x AC 73 4D B1
Write a function that takes two such integers and interleaves them as described. The function signature is:
unsigned int interleave_bytes(unsigned int word1, unsigned int word2);
谢谢先
For example:
word1: 0x 00 00 AC 4D
word2: 0x 00 00 73 B1
Yields:
output: 0x AC 73 4D B1
Write a function that takes two such integers and interleaves them as described. The function signature is:
unsigned int interleave_bytes(unsigned int word1, unsigned int word2);
谢谢先