24 #ifndef _MM3DNOW_H_INCLUDED
25 #define _MM3DNOW_H_INCLUDED
33 #define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("3dnow")))
37 __builtin_ia32_femms();
41 _m_pavgusb(__m64 __m1, __m64 __m2) {
42 return (__m64)__builtin_ia32_pavgusb((__v8qi)__m1, (__v8qi)__m2);
47 return (__m64)__builtin_ia32_pf2id((__v2sf)__m);
51 _m_pfacc(__m64 __m1, __m64 __m2) {
52 return (__m64)__builtin_ia32_pfacc((__v2sf)__m1, (__v2sf)__m2);
56 _m_pfadd(__m64 __m1, __m64 __m2) {
57 return (__m64)__builtin_ia32_pfadd((__v2sf)__m1, (__v2sf)__m2);
61 _m_pfcmpeq(__m64 __m1, __m64 __m2) {
62 return (__m64)__builtin_ia32_pfcmpeq((__v2sf)__m1, (__v2sf)__m2);
66 _m_pfcmpge(__m64 __m1, __m64 __m2) {
67 return (__m64)__builtin_ia32_pfcmpge((__v2sf)__m1, (__v2sf)__m2);
71 _m_pfcmpgt(__m64 __m1, __m64 __m2) {
72 return (__m64)__builtin_ia32_pfcmpgt((__v2sf)__m1, (__v2sf)__m2);
76 _m_pfmax(__m64 __m1, __m64 __m2) {
77 return (__m64)__builtin_ia32_pfmax((__v2sf)__m1, (__v2sf)__m2);
81 _m_pfmin(__m64 __m1, __m64 __m2) {
82 return (__m64)__builtin_ia32_pfmin((__v2sf)__m1, (__v2sf)__m2);
86 _m_pfmul(__m64 __m1, __m64 __m2) {
87 return (__m64)__builtin_ia32_pfmul((__v2sf)__m1, (__v2sf)__m2);
92 return (__m64)__builtin_ia32_pfrcp((__v2sf)__m);
96 _m_pfrcpit1(__m64 __m1, __m64 __m2) {
97 return (__m64)__builtin_ia32_pfrcpit1((__v2sf)__m1, (__v2sf)__m2);
101 _m_pfrcpit2(__m64 __m1, __m64 __m2) {
102 return (__m64)__builtin_ia32_pfrcpit2((__v2sf)__m1, (__v2sf)__m2);
106 _m_pfrsqrt(__m64 __m) {
107 return (__m64)__builtin_ia32_pfrsqrt((__v2sf)__m);
111 _m_pfrsqrtit1(__m64 __m1, __m64 __m2) {
112 return (__m64)__builtin_ia32_pfrsqit1((__v2sf)__m1, (__v2sf)__m2);
116 _m_pfsub(__m64 __m1, __m64 __m2) {
117 return (__m64)__builtin_ia32_pfsub((__v2sf)__m1, (__v2sf)__m2);
121 _m_pfsubr(__m64 __m1, __m64 __m2) {
122 return (__m64)__builtin_ia32_pfsubr((__v2sf)__m1, (__v2sf)__m2);
126 _m_pi2fd(__m64 __m) {
127 return (__m64)__builtin_ia32_pi2fd((__v2si)__m);
131 _m_pmulhrw(__m64 __m1, __m64 __m2) {
132 return (__m64)__builtin_ia32_pmulhrw((__v4hi)__m1, (__v4hi)__m2);
136 #undef __DEFAULT_FN_ATTRS
137 #define __DEFAULT_FN_ATTRS __attribute__((__always_inline__, __nodebug__, __target__("3dnowa")))
140 _m_pf2iw(__m64 __m) {
141 return (__m64)__builtin_ia32_pf2iw((__v2sf)__m);
145 _m_pfnacc(__m64 __m1, __m64 __m2) {
146 return (__m64)__builtin_ia32_pfnacc((__v2sf)__m1, (__v2sf)__m2);
150 _m_pfpnacc(__m64 __m1, __m64 __m2) {
151 return (__m64)__builtin_ia32_pfpnacc((__v2sf)__m1, (__v2sf)__m2);
155 _m_pi2fw(__m64 __m) {
156 return (__m64)__builtin_ia32_pi2fw((__v2si)__m);
160 _m_pswapdsf(__m64 __m) {
161 return (__m64)__builtin_ia32_pswapdsf((__v2sf)__m);
165 _m_pswapdsi(__m64 __m) {
166 return (__m64)__builtin_ia32_pswapdsi((__v2si)__m);
169 #undef __DEFAULT_FN_ATTRS
#define __DEFAULT_FN_ATTRS
Definition: mm3dnow.h:137
float __v2sf __attribute__((__vector_size__(8)))
Definition: mm3dnow.h:30