From: Petri H. <phi...@us...> - 2012-04-11 12:25:32
|
# HG changeset patch # User Petri Hintukainen <phi...@us...> # Date 1333526817 -10800 # Node ID 38aa077350d0cfc081e6a9f11091b9f1b88443a1 # Branch default # Parent 56fa22f440c1fa031840fb85452ded1dc2798059 xine_mmx.h: Added pmaddubsw (SSSE3) diff --git a/src/xine-utils/xine_mmx.h b/src/xine-utils/xine_mmx.h --- a/src/xine-utils/xine_mmx.h +++ b/src/xine-utils/xine_mmx.h @@ -277,6 +277,7 @@ float sf[4]; /* Single-precision (32-bit) value */ } ATTR_ALIGN(16) sse_t; /* On a 16 byte (128-bit) boundary */ +#define FILL_SSE_UW(w) {uw:{w,w,w,w,w,w,w,w}} #define sse_i2r(op, imm, reg) \ __asm__ __volatile__ (#op " %0, %%" #reg \ @@ -522,6 +523,11 @@ #define pshuflw_m2r(var, reg, imm) mmx_m2ri (pshuflw, var, reg, imm) #define pshuflw_r2r(regs, regd, imm) mmx_r2ri (pshuflw, regs, regd, imm) +/* SSSE3 */ + +#define pmaddubsw_r2r(regs, regd) mmx_r2r(pmaddubsw, regs, regd) + + #endif /*ARCH_X86 */ #endif /*XINE_MMX_H*/ |