__m64_psub2uus
Microsoft Specific
Emits the 2-byte uus (unsigned, unsigned, signed) saturation form of the IPF Parallel Subtract (psub2.uus) instruction.
__m64 __m64_psub2uus( __m64 a, __m64 b );
// psub2uus.cpp
// processor: IPF
#include <stdio.h>
#include <intrin.h>
#pragma intrinsic(__m64_psub2uus)
int main()
{
__m64 m, n, result;
m.m64_i64 = 0x110022003300FF00;
n.m64_i64 = 0x01100220033000FF;
result = __m64_psub2uus(m, n);
printf_s( "__m64_psub2uus(%#18I64x, %#18I64x) == %#18I64x\n",
m, n, result);
// due to underflow (negative result) many of the bytes here
// will be zero.
result = __m64_psub2uus(n, m);
printf_s( "__m64_psub2uus(%#18I64x, %#18I64x) == %#18I64x\n",
n, m, result);
}
__m64_psub2uus(0x110022003300ff00, 0x1100220033000ff) == 0xff01fe02fd0fe01 __m64_psub2uus( 0x1100220033000ff, 0x110022003300ff00) == 0x1ff