SIMD

SSE Intrinsics

Packed Arithmetic Intrinsics

Intrinsic Instruction Operation R0 R1 R2 R3
_mm_add_ss ADDSS Adds

a0 [op] b0 

a1 

a2 

a3 

_mm_add_ps ADDPS Adds

a0 [op] b0 

a1 [op] b1 

a2 [op] b2 

a3 [op] b3 

_mm_sub_ss SUBSS Subtracts

a0 [op] b0 

a1 

a2 

a3 

_mm_sub_ps SUBPS Subtracts

a0 [op] b0 

a1 [op] b1 

a2 [op] b2 

a3 [op] b3 

_mm_mul_ss MULSS Multiplies

a0 [op] b0 

a1 

a2 

a3 

_mm_mul_ps MULPS Multiplies

a0 [op] b0 

a1 [op] b1 

a2 [op] b2 

a3 [op] b3 

_mm_div_ss DIVSS Divides

a0 [op] b0 

a1 

a2 

a3 

_mm_div_ps DIVPS Divides

a0 [op] b0 

a1 [op] b1 

a2 [op] b2 

a3 [op] b3 

_mm_sqrt_ss SQRTSS Computes squared root

[op] a0 

a1 

a2 

a3 

_mm_sqrt_ps SQRTPS Computes squared root

[op] a0 

[op] b1 

[op] b2 

[op] b3 

_mm_rcp_ss RCPSS Computes reciprocal

[op] a0 

a1 

a2 

a3 

_mm_rcp_ps RCPPS Computes reciprocal

[op] a0 

[op] b1 

[op] b2 

[op] b3 

_mm_rsqrt_ss RSQRTSS Computes reciprocal square root

[op] a0 

a1 

a2 

a3 

_mm_rsqrt_ps RSQRTPS Computes reciprocal squared root

[op] a0 

[op] b1 

[op] b2 

[op] b3 

_mm_min_ss MINSS Computes minimum

[op]( a0,b0) 

a1 

a2 

a3 

_mm_min_ps MINPS Computes minimum

[op]( a0,b0) 

[op] (a1, b1) 

[op] (a2, b2) 

[op] (a3, b3) 

_mm_max_ss MAXSS Computes maximum

[op]( a0,b0) 

a1 

a2 

a3 

_mm_max_ps MAXPS Computes maximum

[op]( a0,b0) 

[op] (a1, b1) 

[op] (a2, b2) 

[op] (a3, b3) 

Leave a Reply

Your email address will not be published. Required fields are marked *