#pragma once
#ifndef _MMINTRIN_H_INCLUDED
#define _MMINTRIN_H_INCLUDED
#ifndef __midl
#if !defined _M_IX86 && !defined _M_X64
#error This header is specific to X86 and X64 targets
#endif
#if defined (_M_CEE_PURE)
#error ERROR: MM intrinsics not supported in the pure mode!
#else /* defined (_M_CEE_PURE) */
#if defined __cplusplus
extern
"C"
{
#endif /* defined __cplusplus */
typedef
union
__declspec
(intrin_type)
__declspec
(align(
8
))
{
unsigned
__int64
;
float
[
2
];
__int8
[
8
];
__int16
[
4
];
__int32
[
2
];
__int64
;
unsigned
__int8
[
8
];
unsigned
__int16
[
4
];
unsigned
__int32
[
2
];
}
;
#if defined(_M_IX86)
void
(
void
);
(
int
);
int
(
);
(
,
);
(
,
);
(
,
);
(
,
);
(
,
);
(
,
);
(
,
);
(
,
);
(
,
);
(
,
);
(
,
);
(
,
);
(
,
);
(
,
);
(
,
);
(
,
);
(
,
);
(
,
);
(
,
);
(
,
);
(
,
);
(
,
);
(
,
);
(
,
);
(
,
);
(
,
);
(
,
);
(
,
int
);
(
,
);
(
,
int
);
(
,
);
(
,
int
);
(
,
);
(
,
int
);
(
,
);
(
,
int
);
(
,
);
(
,
int
);
(
,
);
(
,
int
);
(
,
);
(
,
int
);
(
,
);
(
,
);
(
,
);
(
,
);
(
,
);
(
,
);
(
,
);
(
,
);
(
,
);
(
,
);
(
void
);
(
int
,
int
);
(
short
,
short
,
short
,
short
);
(
char
,
char
,
char
,
char
,
char
,
char
,
char
,
char
);
(
int
);
(
short
);
(
char
);
(
int
,
int
);
(
short
,
short
,
short
,
short
);
(
char
,
char
,
char
,
char
,
char
,
char
,
char
,
char
);
#define _mm_empty _m_empty
#define _mm_cvtsi32_si64 _m_from_int
#define _mm_cvtsi64_si32 _m_to_int
#define _mm_packs_pi16 _m_packsswb
#define _mm_packs_pi32 _m_packssdw
#define _mm_packs_pu16 _m_packuswb
#define _mm_unpackhi_pi8 _m_punpckhbw
#define _mm_unpackhi_pi16 _m_punpckhwd
#define _mm_unpackhi_pi32 _m_punpckhdq
#define _mm_unpacklo_pi8 _m_punpcklbw
#define _mm_unpacklo_pi16 _m_punpcklwd
#define _mm_unpacklo_pi32 _m_punpckldq
#define _mm_add_pi8 _m_paddb
#define _mm_add_pi16 _m_paddw
#define _mm_add_pi32 _m_paddd
#define _mm_adds_pi8 _m_paddsb
#define _mm_adds_pi16 _m_paddsw
#define _mm_adds_pu8 _m_paddusb
#define _mm_adds_pu16 _m_paddusw
#define _mm_sub_pi8 _m_psubb
#define _mm_sub_pi16 _m_psubw
#define _mm_sub_pi32 _m_psubd
#define _mm_subs_pi8 _m_psubsb
#define _mm_subs_pi16 _m_psubsw
#define _mm_subs_pu8 _m_psubusb
#define _mm_subs_pu16 _m_psubusw
#define _mm_madd_pi16 _m_pmaddwd
#define _mm_mulhi_pi16 _m_pmulhw
#define _mm_mullo_pi16 _m_pmullw
#define _mm_sll_pi16 _m_psllw
#define _mm_slli_pi16 _m_psllwi
#define _mm_sll_pi32 _m_pslld
#define _mm_slli_pi32 _m_pslldi
#define _mm_sll_si64 _m_psllq
#define _mm_slli_si64 _m_psllqi
#define _mm_sra_pi16 _m_psraw
#define _mm_srai_pi16 _m_psrawi
#define _mm_sra_pi32 _m_psrad
#define _mm_srai_pi32 _m_psradi
#define _mm_srl_pi16 _m_psrlw
#define _mm_srli_pi16 _m_psrlwi
#define _mm_srl_pi32 _m_psrld
#define _mm_srli_pi32 _m_psrldi
#define _mm_srl_si64 _m_psrlq
#define _mm_srli_si64 _m_psrlqi
#define _mm_and_si64 _m_pand
#define _mm_andnot_si64 _m_pandn
#define _mm_or_si64 _m_por
#define _mm_xor_si64 _m_pxor
#define _mm_cmpeq_pi8 _m_pcmpeqb
#define _mm_cmpeq_pi16 _m_pcmpeqw
#define _mm_cmpeq_pi32 _m_pcmpeqd
#define _mm_cmpgt_pi8 _m_pcmpgtb
#define _mm_cmpgt_pi16 _m_pcmpgtw
#define _mm_cmpgt_pi32 _m_pcmpgtd
#endif // defined(_M_IX86)
#if defined __cplusplus
};
#endif /* defined __cplusplus */
#endif /* defined (_M_CEE_PURE) */
#endif /* __midl */
#endif /* _MMINTRIN_H_INCLUDED */