gccxml_gem 0.9.3-x86-darwin-10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (176) hide show
  1. data/Rakefile +84 -0
  2. data/bin/gccxml +0 -0
  3. data/bin/gccxml_cc1plus +0 -0
  4. data/gccxml.rb +57 -0
  5. data/share/doc/gccxml-0.9/Copyright.txt +55 -0
  6. data/share/doc/gccxml-0.9/gccxml.html +168 -0
  7. data/share/doc/gccxml-0.9/gccxml.txt +293 -0
  8. data/share/gccxml-0.9/GCC/2.95/algorithm +76 -0
  9. data/share/gccxml-0.9/GCC/2.95/bitset +17 -0
  10. data/share/gccxml-0.9/GCC/2.95/cctype +24 -0
  11. data/share/gccxml-0.9/GCC/2.95/clocale +14 -0
  12. data/share/gccxml-0.9/GCC/2.95/cmath +33 -0
  13. data/share/gccxml-0.9/GCC/2.95/complex +38 -0
  14. data/share/gccxml-0.9/GCC/2.95/csetjmp +13 -0
  15. data/share/gccxml-0.9/GCC/2.95/csignal +14 -0
  16. data/share/gccxml-0.9/GCC/2.95/cstdarg +12 -0
  17. data/share/gccxml-0.9/GCC/2.95/cstddef +13 -0
  18. data/share/gccxml-0.9/GCC/2.95/cstdio +55 -0
  19. data/share/gccxml-0.9/GCC/2.95/cstdlib +66 -0
  20. data/share/gccxml-0.9/GCC/2.95/cstring +34 -0
  21. data/share/gccxml-0.9/GCC/2.95/ctime +24 -0
  22. data/share/gccxml-0.9/GCC/2.95/cwchar +65 -0
  23. data/share/gccxml-0.9/GCC/2.95/cwctype +31 -0
  24. data/share/gccxml-0.9/GCC/2.95/deque +19 -0
  25. data/share/gccxml-0.9/GCC/2.95/exception +20 -0
  26. data/share/gccxml-0.9/GCC/2.95/fstream +23 -0
  27. data/share/gccxml-0.9/GCC/2.95/functional +64 -0
  28. data/share/gccxml-0.9/GCC/2.95/gccxml_bitset +1066 -0
  29. data/share/gccxml-0.9/GCC/2.95/iomanip +20 -0
  30. data/share/gccxml-0.9/GCC/2.95/iosfwd +20 -0
  31. data/share/gccxml-0.9/GCC/2.95/iostream +27 -0
  32. data/share/gccxml-0.9/GCC/2.95/iterator +39 -0
  33. data/share/gccxml-0.9/GCC/2.95/list +19 -0
  34. data/share/gccxml-0.9/GCC/2.95/map +20 -0
  35. data/share/gccxml-0.9/GCC/2.95/memory +21 -0
  36. data/share/gccxml-0.9/GCC/2.95/new +13 -0
  37. data/share/gccxml-0.9/GCC/2.95/numeric +15 -0
  38. data/share/gccxml-0.9/GCC/2.95/pthread.h +16 -0
  39. data/share/gccxml-0.9/GCC/2.95/queue +20 -0
  40. data/share/gccxml-0.9/GCC/2.95/set +20 -0
  41. data/share/gccxml-0.9/GCC/2.95/sstream +24 -0
  42. data/share/gccxml-0.9/GCC/2.95/stack +19 -0
  43. data/share/gccxml-0.9/GCC/2.95/std/bastring.cc +524 -0
  44. data/share/gccxml-0.9/GCC/2.95/std/complext.h +397 -0
  45. data/share/gccxml-0.9/GCC/2.95/std/dcomplex.h +92 -0
  46. data/share/gccxml-0.9/GCC/2.95/std/fcomplex.h +88 -0
  47. data/share/gccxml-0.9/GCC/2.95/std/gslice_array.h +170 -0
  48. data/share/gccxml-0.9/GCC/2.95/std/indirect_array.h +157 -0
  49. data/share/gccxml-0.9/GCC/2.95/std/ldcomplex.h +96 -0
  50. data/share/gccxml-0.9/GCC/2.95/std/mask_array.h +154 -0
  51. data/share/gccxml-0.9/GCC/2.95/std/slice_array.h +156 -0
  52. data/share/gccxml-0.9/GCC/2.95/std/std_valarray.h +728 -0
  53. data/share/gccxml-0.9/GCC/2.95/std/straits.h +162 -0
  54. data/share/gccxml-0.9/GCC/2.95/std/valarray_meta.h +1035 -0
  55. data/share/gccxml-0.9/GCC/2.95/stdexcept +17 -0
  56. data/share/gccxml-0.9/GCC/2.95/stl_alloc.h +1057 -0
  57. data/share/gccxml-0.9/GCC/2.95/stl_bvector.h +836 -0
  58. data/share/gccxml-0.9/GCC/2.95/stl_deque.h +1699 -0
  59. data/share/gccxml-0.9/GCC/2.95/stl_list.h +843 -0
  60. data/share/gccxml-0.9/GCC/2.95/stl_tree.h +1331 -0
  61. data/share/gccxml-0.9/GCC/2.95/stl_vector.h +828 -0
  62. data/share/gccxml-0.9/GCC/2.95/string +26 -0
  63. data/share/gccxml-0.9/GCC/2.95/strstream +23 -0
  64. data/share/gccxml-0.9/GCC/2.95/typeinfo +11 -0
  65. data/share/gccxml-0.9/GCC/2.95/utility +25 -0
  66. data/share/gccxml-0.9/GCC/2.95/valarray +52 -0
  67. data/share/gccxml-0.9/GCC/2.95/vector +19 -0
  68. data/share/gccxml-0.9/GCC/2.96/sstream +305 -0
  69. data/share/gccxml-0.9/GCC/3.0/pthread.h +16 -0
  70. data/share/gccxml-0.9/GCC/3.1/pthread.h +16 -0
  71. data/share/gccxml-0.9/GCC/3.2/bits/fstream.tcc +500 -0
  72. data/share/gccxml-0.9/GCC/3.2/bits/gthr-default.h +585 -0
  73. data/share/gccxml-0.9/GCC/3.2/bits/istream.tcc +1207 -0
  74. data/share/gccxml-0.9/GCC/3.2/bits/locale_facets.h +1810 -0
  75. data/share/gccxml-0.9/GCC/3.2/bits/locale_facets.tcc +2397 -0
  76. data/share/gccxml-0.9/GCC/3.2/bits/messages_members.h +108 -0
  77. data/share/gccxml-0.9/GCC/3.2/bits/ostream.tcc +713 -0
  78. data/share/gccxml-0.9/GCC/3.2/bits/sstream.tcc +241 -0
  79. data/share/gccxml-0.9/GCC/3.2/bits/stl_deque.h +1682 -0
  80. data/share/gccxml-0.9/GCC/3.2/bits/stl_list.h +989 -0
  81. data/share/gccxml-0.9/GCC/3.2/bits/stl_tree.h +1462 -0
  82. data/share/gccxml-0.9/GCC/3.2/bits/stl_vector.h +1085 -0
  83. data/share/gccxml-0.9/GCC/3.2/bits/valarray_meta.h +1063 -0
  84. data/share/gccxml-0.9/GCC/3.2/fstream +579 -0
  85. data/share/gccxml-0.9/GCC/3.2/pthread.h +16 -0
  86. data/share/gccxml-0.9/GCC/3.2/sstream +384 -0
  87. data/share/gccxml-0.9/GCC/3.3/bits/fstream.tcc +530 -0
  88. data/share/gccxml-0.9/GCC/3.3/bits/list.tcc +378 -0
  89. data/share/gccxml-0.9/GCC/3.3/bits/locale_facets.h +2050 -0
  90. data/share/gccxml-0.9/GCC/3.3/bits/messages_members.h +108 -0
  91. data/share/gccxml-0.9/GCC/3.3/bits/sstream.tcc +243 -0
  92. data/share/gccxml-0.9/GCC/3.3/bits/stl_deque.h +1603 -0
  93. data/share/gccxml-0.9/GCC/3.3/bits/stl_list.h +1167 -0
  94. data/share/gccxml-0.9/GCC/3.3/bits/stl_tree.h +1462 -0
  95. data/share/gccxml-0.9/GCC/3.3/bits/stl_vector.h +992 -0
  96. data/share/gccxml-0.9/GCC/3.3/bits/valarray_meta.h +1135 -0
  97. data/share/gccxml-0.9/GCC/3.3/fstream +842 -0
  98. data/share/gccxml-0.9/GCC/3.3/gccxml_builtins.h +22 -0
  99. data/share/gccxml-0.9/GCC/3.3/sstream +638 -0
  100. data/share/gccxml-0.9/GCC/3.4/bits/gthr-default.h +669 -0
  101. data/share/gccxml-0.9/GCC/3.4/gccxml_builtins.h +91 -0
  102. data/share/gccxml-0.9/GCC/4.0/emmintrin.h +5 -0
  103. data/share/gccxml-0.9/GCC/4.0/gccxml_apple_emmintrin.h +1037 -0
  104. data/share/gccxml-0.9/GCC/4.0/gccxml_apple_mmintrin.h +669 -0
  105. data/share/gccxml-0.9/GCC/4.0/gccxml_apple_xmmintrin.h +870 -0
  106. data/share/gccxml-0.9/GCC/4.0/gccxml_builtins.h +128 -0
  107. data/share/gccxml-0.9/GCC/4.0/gccxml_gnu_emmintrin.h +977 -0
  108. data/share/gccxml-0.9/GCC/4.0/gccxml_gnu_mmintrin.h +636 -0
  109. data/share/gccxml-0.9/GCC/4.0/gccxml_gnu_xmmintrin.h +833 -0
  110. data/share/gccxml-0.9/GCC/4.0/mmintrin.h +5 -0
  111. data/share/gccxml-0.9/GCC/4.0/xmmintrin.h +5 -0
  112. data/share/gccxml-0.9/GCC/4.1/bits/gthr-default.h +622 -0
  113. data/share/gccxml-0.9/GCC/4.1/emmintrin.h +5 -0
  114. data/share/gccxml-0.9/GCC/4.1/gccxml_apple_emmintrin.h +1509 -0
  115. data/share/gccxml-0.9/GCC/4.1/gccxml_apple_mmintrin.h +942 -0
  116. data/share/gccxml-0.9/GCC/4.1/gccxml_apple_xmmintrin.h +1192 -0
  117. data/share/gccxml-0.9/GCC/4.1/gccxml_builtins.h +131 -0
  118. data/share/gccxml-0.9/GCC/4.1/gccxml_gnu_emmintrin.h +1004 -0
  119. data/share/gccxml-0.9/GCC/4.1/gccxml_gnu_mmintrin.h +637 -0
  120. data/share/gccxml-0.9/GCC/4.1/gccxml_gnu_xmmintrin.h +834 -0
  121. data/share/gccxml-0.9/GCC/4.1/mmintrin.h +5 -0
  122. data/share/gccxml-0.9/GCC/4.1/xmmintrin.h +5 -0
  123. data/share/gccxml-0.9/GCC/4.2/emmintrin.h +5 -0
  124. data/share/gccxml-0.9/GCC/4.2/gccxml_apple_emmintrin.h +1509 -0
  125. data/share/gccxml-0.9/GCC/4.2/gccxml_apple_mmintrin.h +942 -0
  126. data/share/gccxml-0.9/GCC/4.2/gccxml_apple_xmmintrin.h +1192 -0
  127. data/share/gccxml-0.9/GCC/4.2/gccxml_builtins.h +131 -0
  128. data/share/gccxml-0.9/GCC/4.2/gccxml_gnu_emmintrin.h +1013 -0
  129. data/share/gccxml-0.9/GCC/4.2/gccxml_gnu_mmintrin.h +663 -0
  130. data/share/gccxml-0.9/GCC/4.2/gccxml_gnu_xmmintrin.h +860 -0
  131. data/share/gccxml-0.9/GCC/4.2/mmintrin.h +5 -0
  132. data/share/gccxml-0.9/GCC/4.2/xmmintrin.h +5 -0
  133. data/share/gccxml-0.9/GCC/4.3/emmintrin.h +1043 -0
  134. data/share/gccxml-0.9/GCC/4.3/gccxml_builtins.h +183 -0
  135. data/share/gccxml-0.9/GCC/4.3/mmintrin.h +663 -0
  136. data/share/gccxml-0.9/GCC/4.3/xmmintrin.h +867 -0
  137. data/share/gccxml-0.9/GCC/4.4/bits/c++config.h +1431 -0
  138. data/share/gccxml-0.9/GCC/4.4/emmintrin.h +1041 -0
  139. data/share/gccxml-0.9/GCC/4.4/gccxml_builtins.h +153 -0
  140. data/share/gccxml-0.9/GCC/4.4/mmintrin.h +662 -0
  141. data/share/gccxml-0.9/GCC/4.4/xmmintrin.h +864 -0
  142. data/share/gccxml-0.9/GCC/4.5/gccxml_builtins.h +154 -0
  143. data/share/gccxml-0.9/GCC/4.5/iomanip +349 -0
  144. data/share/gccxml-0.9/GCC/COPYING.RUNTIME +73 -0
  145. data/share/gccxml-0.9/GCC/COPYING3 +674 -0
  146. data/share/gccxml-0.9/IBM/8.0/adapt_headers.sh +34 -0
  147. data/share/gccxml-0.9/IBM/8.0/stdlib.h.patch +27 -0
  148. data/share/gccxml-0.9/IBM/8.0/xstring.patch +19 -0
  149. data/share/gccxml-0.9/IBM/README +8 -0
  150. data/share/gccxml-0.9/IBM/find_flags +51 -0
  151. data/share/gccxml-0.9/IBM/find_flags_common +48 -0
  152. data/share/gccxml-0.9/Intel/find_flags +56 -0
  153. data/share/gccxml-0.9/Intel/pthread.h +16 -0
  154. data/share/gccxml-0.9/MIPSpro/7.3/exception +9 -0
  155. data/share/gccxml-0.9/MIPSpro/7.3/gccxml_mpro_internals.h +21 -0
  156. data/share/gccxml-0.9/MIPSpro/7.3/iomanip +161 -0
  157. data/share/gccxml-0.9/MIPSpro/7.3/ostream +9 -0
  158. data/share/gccxml-0.9/MIPSpro/7.3/stddef.h +9 -0
  159. data/share/gccxml-0.9/MIPSpro/7.3/stl_config.h +9 -0
  160. data/share/gccxml-0.9/MIPSpro/7.3/stl_locale.h +17 -0
  161. data/share/gccxml-0.9/MIPSpro/7.3/stl_monetary.h +14 -0
  162. data/share/gccxml-0.9/MIPSpro/7.3/stl_numeric_facets.h +13 -0
  163. data/share/gccxml-0.9/MIPSpro/7.3/stl_threads.h +11 -0
  164. data/share/gccxml-0.9/MIPSpro/7.3/string +18 -0
  165. data/share/gccxml-0.9/MIPSpro/find_flags +70 -0
  166. data/share/gccxml-0.9/MIPSpro/mipspro_defs.cxx +63 -0
  167. data/share/gccxml-0.9/Sun/5.8/Cstd.patch +156 -0
  168. data/share/gccxml-0.9/Sun/5.8/adapt_headers.sh +32 -0
  169. data/share/gccxml-0.9/Sun/5.8/std-5.10.patch +22 -0
  170. data/share/gccxml-0.9/Sun/README +8 -0
  171. data/share/gccxml-0.9/Sun/find_flags +51 -0
  172. data/share/gccxml-0.9/Sun/find_flags_common +42 -0
  173. data/share/gccxml-0.9/gccxml_config +2 -0
  174. data/share/gccxml-0.9/gccxml_identify_compiler.cc +13 -0
  175. data/share/man/man1/gccxml.1 +246 -0
  176. metadata +245 -0
@@ -0,0 +1,183 @@
1
+ #define __builtin_apply(x,y,z) ((void*)0)
2
+ #define __builtin_nan(x) (0.0)
3
+ #define __builtin_nanf(x) (0.0f)
4
+ #define __builtin_nanl(x) (0.0l)
5
+ #define __builtin_huge_val(x) (0.0)
6
+ #define __builtin_huge_valf(x) (0.0f)
7
+ #define __builtin_huge_vall(x) (0.0l)
8
+ #define __builtin_apply_args(x) ((void*)0)
9
+ #define __builtin_types_compatible_p(x,y) 0
10
+ #define __builtin_choose_expr(x,y,z) int
11
+ #define __builtin_constant_p(x) 0
12
+ void* __builtin_memchr(void const*, int, unsigned int);
13
+ void __builtin_return (void *RESULT);
14
+ void * __builtin_return_address (unsigned int LEVEL);
15
+ void * __builtin_frame_address (unsigned int LEVEL);
16
+ long __builtin_expect (long EXP, long C);
17
+ void __builtin_prefetch (const void *ADDR, ...);
18
+ double __builtin_inf (void);
19
+ float __builtin_inff (void);
20
+ long double __builtin_infl (void);
21
+ double __builtin_nans (const char *str);
22
+ float __builtin_nansf (const char *str);
23
+ long double __builtin_nansl (const char *str);
24
+ double __builtin_acos(double);
25
+ float __builtin_acosf(float);
26
+ long double __builtin_acosl(long double);
27
+ double __builtin_asin(double);
28
+ float __builtin_asinf(float);
29
+ long double __builtin_asinl(long double);
30
+ double __builtin_atan(double);
31
+ double __builtin_atan2(double, double);
32
+ float __builtin_atan2f(float, float);
33
+ long double __builtin_atan2l(long double, long double);
34
+ float __builtin_atanf(float);
35
+ long double __builtin_atanl(long double);
36
+ double __builtin_ceil(double);
37
+ float __builtin_ceilf(float);
38
+ long double __builtin_ceill(long double);
39
+ double __builtin_cos(double);
40
+ float __builtin_cosf(float);
41
+ double __builtin_cosh(double);
42
+ float __builtin_coshf(float);
43
+ long double __builtin_coshl(long double);
44
+ long double __builtin_cosl(long double);
45
+ double __builtin_exp(double);
46
+ float __builtin_expf(float);
47
+ long double __builtin_expl(long double);
48
+ double __builtin_fabs(double);
49
+ float __builtin_fabsf(float);
50
+ long double __builtin_fabsl(long double);
51
+ double __builtin_floor(double);
52
+ float __builtin_floorf(float);
53
+ long double __builtin_floorl(long double);
54
+ float __builtin_fmodf(float, float);
55
+ long double __builtin_fmodl(long double, long double);
56
+ double __builtin_frexp(double, int*);
57
+ float __builtin_frexpf(float, int*);
58
+ long double __builtin_frexpl(long double, int*);
59
+ double __builtin_ldexp(double, int);
60
+ float __builtin_ldexpf(float, int);
61
+ long double __builtin_ldexpl(long double, int);
62
+ double __builtin_log(double);
63
+ double __builtin_log10(double);
64
+ float __builtin_log10f(float);
65
+ long double __builtin_log10l(long double);
66
+ float __builtin_logf(float);
67
+ long double __builtin_logl(long double);
68
+ float __builtin_modff(float, float*);
69
+ long double __builtin_modfl(long double, long double*);
70
+ float __builtin_powf(float, float);
71
+ long double __builtin_powl(long double, long double);
72
+ double __builtin_powi(double, int);
73
+ float __builtin_powif(float, int);
74
+ long double __builtin_powil(long double, int);
75
+ double __builtin_sin(double);
76
+ float __builtin_sinf(float);
77
+ double __builtin_sinh(double);
78
+ float __builtin_sinhf(float);
79
+ long double __builtin_sinhl(long double);
80
+ long double __builtin_sinl(long double);
81
+ double __builtin_sqrt(double);
82
+ float __builtin_sqrtf(float);
83
+ long double __builtin_sqrtl(long double);
84
+ double __builtin_tan(double);
85
+ float __builtin_tanf(float);
86
+ double __builtin_tanh(double);
87
+ float __builtin_tanhf(float);
88
+ long double __builtin_tanhl(long double);
89
+ long double __builtin_tanl(long double);
90
+ float __builtin_cabsf(float __complex__);
91
+ double __builtin_cabs(double __complex__);
92
+ long double __builtin_cabsl(long double __complex__);
93
+ float __builtin_cargf(float __complex__);
94
+ double __builtin_carg(double __complex__);
95
+ long double __builtin_cargl(long double __complex__);
96
+ int __builtin_ctz(int);
97
+ int __builtin_ctzl(long);
98
+ int __builtin_ctzll(long long);
99
+ int __builtin_popcount(int);
100
+ int __builtin_popcountl(long);
101
+ int __builtin_popcountll(long long);
102
+ float __complex__ __builtin_ccosf(float __complex__);
103
+ double __complex__ __builtin_ccos(double __complex__);
104
+ long double __complex__ __builtin_ccosl(long double __complex__);
105
+ float __complex__ __builtin_ccoshf(float __complex__);
106
+ double __complex__ __builtin_ccosh(double __complex__);
107
+ long double __complex__ __builtin_ccoshl(long double __complex__);
108
+ float __complex__ __builtin_cexpf(float __complex__);
109
+ double __complex__ __builtin_cexp(double __complex__);
110
+ long double __complex__ __builtin_cexpl(long double __complex__);
111
+ float __complex__ __builtin_clogf(float __complex__);
112
+ double __complex__ __builtin_clog(double __complex__);
113
+ long double __complex__ __builtin_clogl(long double __complex__);
114
+ float __complex__ __builtin_csinf(float __complex__);
115
+ double __complex__ __builtin_csin(double __complex__);
116
+ long double __complex__ __builtin_csinl(long double __complex__);
117
+ float __complex__ __builtin_csinhf(float __complex__);
118
+ double __complex__ __builtin_csinh(double __complex__);
119
+ long double __complex__ __builtin_csinhl(long double __complex__);
120
+ float __complex__ __builtin_csqrtf(float __complex__);
121
+ double __complex__ __builtin_csqrt(double __complex__);
122
+ long double __complex__ __builtin_csqrtl(long double __complex__);
123
+ float __complex__ __builtin_ctanf(float __complex__);
124
+ double __complex__ __builtin_ctan(double __complex__);
125
+ long double __complex__ __builtin_ctanl(long double __complex__);
126
+ float __complex__ __builtin_ctanhf(float __complex__);
127
+ double __complex__ __builtin_ctanh(double __complex__);
128
+ long double __complex__ __builtin_ctanhl(long double __complex__);
129
+ float __complex__ __builtin_cpowf(float __complex__, float __complex__);
130
+ double __complex__ __builtin_cpow(double __complex__, double __complex__);
131
+ long double __complex__ __builtin_cpowl(long double __complex__, long double __complex__);
132
+
133
+ /* The GCC 4.3 parser hard-codes handling of these, so they do not
134
+ have real signatures. */
135
+ bool __builtin_isfinite(...);
136
+ bool __builtin_isinf(...);
137
+ bool __builtin_isnan(...);
138
+ bool __builtin_isnormal(...);
139
+ bool __builtin_isgreater(...);
140
+ bool __builtin_isgreaterequal(...);
141
+ bool __builtin_isless(...);
142
+ bool __builtin_islessequal(...);
143
+ bool __builtin_islessgreater(...);
144
+ bool __builtin_isunordered(...);
145
+ bool __builtin_va_arg_pack(...);
146
+ int __builtin_va_arg_pack_len(...);
147
+
148
+ /*
149
+
150
+ GCC 4.3 has the following additional builtin compile-time constant
151
+ expressions:
152
+
153
+ __builtin_va_arg ( assignment-expression , type-id )
154
+ __builtin_offsetof ( type-id , offsetof-expression )
155
+
156
+ __has_nothrow_assign(T)
157
+ __has_nothrow_constructor(T)
158
+ __has_nothrow_copy(T)
159
+ __has_trivial_assign(T)
160
+ __has_trivial_constructor(T)
161
+ __has_trivial_copy(T)
162
+ __has_trivial_destructor(T)
163
+ __has_virtual_destructor(T)
164
+ __is_abstract(T)
165
+ __is_base_of(Tbase,Tderived)
166
+ __is_class(T)
167
+ __is_convertible_to(Tfrom,Tto)
168
+ __is_empty(T)
169
+ __is_enum(T)
170
+ __is_pod(T)
171
+ __is_polymorphic(T)
172
+ __is_union(T)
173
+
174
+ In order to really support these we would have to update GCC-XML's
175
+ internal parser to be GCC 4.3. Since this has not yet been done we
176
+ get most of the way by defining some of these as macros with fake
177
+ answers. It is enough to get through GCC 4.3's C++98 standard
178
+ library.
179
+ */
180
+
181
+ #define __is_pod(x) false
182
+ #define __is_empty(x) false
183
+ #define __has_trivial_destructor(x) false
@@ -0,0 +1,663 @@
1
+ /* Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007 Free Software
2
+ Foundation, Inc.
3
+
4
+ This file is part of GCC.
5
+
6
+ GCC is free software; you can redistribute it and/or modify
7
+ it under the terms of the GNU General Public License as published by
8
+ the Free Software Foundation; either version 2, or (at your option)
9
+ any later version.
10
+
11
+ GCC is distributed in the hope that it will be useful,
12
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ GNU General Public License for more details.
15
+
16
+ You should have received a copy of the GNU General Public License
17
+ along with GCC; see the file COPYING. If not, write to
18
+ the Free Software Foundation, 51 Franklin Street, Fifth Floor,
19
+ Boston, MA 02110-1301, USA. */
20
+
21
+ /* As a special exception, if you include this header file into source
22
+ files compiled by GCC, this header file does not by itself cause
23
+ the resulting executable to be covered by the GNU General Public
24
+ License. This exception does not however invalidate any other
25
+ reasons why the executable file might be covered by the GNU General
26
+ Public License. */
27
+
28
+ /* Implemented from the specification included in the Intel C++ Compiler
29
+ User Guide and Reference, version 9.0. */
30
+
31
+ #ifndef _MMINTRIN_H_INCLUDED
32
+ #define _MMINTRIN_H_INCLUDED
33
+
34
+ #ifndef __MMX__
35
+ # error "MMX instruction set not enabled"
36
+ #else
37
+ /* The Intel API is flexible enough that we must allow aliasing with other
38
+ vector types, and their scalar components. */
39
+ typedef int __m64 __attribute__ ((__vector_size__ (8), __may_alias__));
40
+
41
+ /* Internal data types for implementing the intrinsics. */
42
+ typedef int __v2si __attribute__ ((__vector_size__ (8)));
43
+ typedef short __v4hi __attribute__ ((__vector_size__ (8)));
44
+ typedef char __v8qi __attribute__ ((__vector_size__ (8)));
45
+
46
+ /* Empty the multimedia state. */
47
+ extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__))
48
+ _mm_empty (void)
49
+ ;
50
+
51
+ extern __inline void __attribute__((__gnu_inline__, __always_inline__, __artificial__))
52
+ _m_empty (void)
53
+ ;
54
+
55
+ /* Convert I to a __m64 object. The integer is zero-extended to 64-bits. */
56
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
57
+ _mm_cvtsi32_si64 (int __i)
58
+ ;
59
+
60
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
61
+ _m_from_int (int __i)
62
+ ;
63
+
64
+ #ifdef __x86_64__
65
+ /* Convert I to a __m64 object. */
66
+
67
+ /* Intel intrinsic. */
68
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
69
+ _m_from_int64 (long long __i)
70
+ ;
71
+
72
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
73
+ _mm_cvtsi64_m64 (long long __i)
74
+ ;
75
+
76
+ /* Microsoft intrinsic. */
77
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
78
+ _mm_cvtsi64x_si64 (long long __i)
79
+ ;
80
+
81
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
82
+ _mm_set_pi64x (long long __i)
83
+ ;
84
+ #endif
85
+
86
+ /* Convert the lower 32 bits of the __m64 object into an integer. */
87
+ extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__))
88
+ _mm_cvtsi64_si32 (__m64 __i)
89
+ ;
90
+
91
+ extern __inline int __attribute__((__gnu_inline__, __always_inline__, __artificial__))
92
+ _m_to_int (__m64 __i)
93
+ ;
94
+
95
+ #ifdef __x86_64__
96
+ /* Convert the __m64 object to a 64bit integer. */
97
+
98
+ /* Intel intrinsic. */
99
+ extern __inline long long __attribute__((__gnu_inline__, __always_inline__, __artificial__))
100
+ _m_to_int64 (__m64 __i)
101
+ ;
102
+
103
+ extern __inline long long __attribute__((__gnu_inline__, __always_inline__, __artificial__))
104
+ _mm_cvtm64_si64 (__m64 __i)
105
+ ;
106
+
107
+ /* Microsoft intrinsic. */
108
+ extern __inline long long __attribute__((__gnu_inline__, __always_inline__, __artificial__))
109
+ _mm_cvtsi64_si64x (__m64 __i)
110
+ ;
111
+ #endif
112
+
113
+ /* Pack the four 16-bit values from M1 into the lower four 8-bit values of
114
+ the result, and the four 16-bit values from M2 into the upper four 8-bit
115
+ values of the result, all with signed saturation. */
116
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
117
+ _mm_packs_pi16 (__m64 __m1, __m64 __m2)
118
+ ;
119
+
120
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
121
+ _m_packsswb (__m64 __m1, __m64 __m2)
122
+ ;
123
+
124
+ /* Pack the two 32-bit values from M1 in to the lower two 16-bit values of
125
+ the result, and the two 32-bit values from M2 into the upper two 16-bit
126
+ values of the result, all with signed saturation. */
127
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
128
+ _mm_packs_pi32 (__m64 __m1, __m64 __m2)
129
+ ;
130
+
131
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
132
+ _m_packssdw (__m64 __m1, __m64 __m2)
133
+ ;
134
+
135
+ /* Pack the four 16-bit values from M1 into the lower four 8-bit values of
136
+ the result, and the four 16-bit values from M2 into the upper four 8-bit
137
+ values of the result, all with unsigned saturation. */
138
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
139
+ _mm_packs_pu16 (__m64 __m1, __m64 __m2)
140
+ ;
141
+
142
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
143
+ _m_packuswb (__m64 __m1, __m64 __m2)
144
+ ;
145
+
146
+ /* Interleave the four 8-bit values from the high half of M1 with the four
147
+ 8-bit values from the high half of M2. */
148
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
149
+ _mm_unpackhi_pi8 (__m64 __m1, __m64 __m2)
150
+ ;
151
+
152
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
153
+ _m_punpckhbw (__m64 __m1, __m64 __m2)
154
+ ;
155
+
156
+ /* Interleave the two 16-bit values from the high half of M1 with the two
157
+ 16-bit values from the high half of M2. */
158
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
159
+ _mm_unpackhi_pi16 (__m64 __m1, __m64 __m2)
160
+ ;
161
+
162
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
163
+ _m_punpckhwd (__m64 __m1, __m64 __m2)
164
+ ;
165
+
166
+ /* Interleave the 32-bit value from the high half of M1 with the 32-bit
167
+ value from the high half of M2. */
168
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
169
+ _mm_unpackhi_pi32 (__m64 __m1, __m64 __m2)
170
+ ;
171
+
172
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
173
+ _m_punpckhdq (__m64 __m1, __m64 __m2)
174
+ ;
175
+
176
+ /* Interleave the four 8-bit values from the low half of M1 with the four
177
+ 8-bit values from the low half of M2. */
178
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
179
+ _mm_unpacklo_pi8 (__m64 __m1, __m64 __m2)
180
+ ;
181
+
182
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
183
+ _m_punpcklbw (__m64 __m1, __m64 __m2)
184
+ ;
185
+
186
+ /* Interleave the two 16-bit values from the low half of M1 with the two
187
+ 16-bit values from the low half of M2. */
188
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
189
+ _mm_unpacklo_pi16 (__m64 __m1, __m64 __m2)
190
+ ;
191
+
192
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
193
+ _m_punpcklwd (__m64 __m1, __m64 __m2)
194
+ ;
195
+
196
+ /* Interleave the 32-bit value from the low half of M1 with the 32-bit
197
+ value from the low half of M2. */
198
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
199
+ _mm_unpacklo_pi32 (__m64 __m1, __m64 __m2)
200
+ ;
201
+
202
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
203
+ _m_punpckldq (__m64 __m1, __m64 __m2)
204
+ ;
205
+
206
+ /* Add the 8-bit values in M1 to the 8-bit values in M2. */
207
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
208
+ _mm_add_pi8 (__m64 __m1, __m64 __m2)
209
+ ;
210
+
211
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
212
+ _m_paddb (__m64 __m1, __m64 __m2)
213
+ ;
214
+
215
+ /* Add the 16-bit values in M1 to the 16-bit values in M2. */
216
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
217
+ _mm_add_pi16 (__m64 __m1, __m64 __m2)
218
+ ;
219
+
220
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
221
+ _m_paddw (__m64 __m1, __m64 __m2)
222
+ ;
223
+
224
+ /* Add the 32-bit values in M1 to the 32-bit values in M2. */
225
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
226
+ _mm_add_pi32 (__m64 __m1, __m64 __m2)
227
+ ;
228
+
229
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
230
+ _m_paddd (__m64 __m1, __m64 __m2)
231
+ ;
232
+
233
+ /* Add the 64-bit values in M1 to the 64-bit values in M2. */
234
+ #ifdef __SSE2__
235
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
236
+ _mm_add_si64 (__m64 __m1, __m64 __m2)
237
+ ;
238
+ #endif
239
+
240
+ /* Add the 8-bit values in M1 to the 8-bit values in M2 using signed
241
+ saturated arithmetic. */
242
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
243
+ _mm_adds_pi8 (__m64 __m1, __m64 __m2)
244
+ ;
245
+
246
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
247
+ _m_paddsb (__m64 __m1, __m64 __m2)
248
+ ;
249
+
250
+ /* Add the 16-bit values in M1 to the 16-bit values in M2 using signed
251
+ saturated arithmetic. */
252
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
253
+ _mm_adds_pi16 (__m64 __m1, __m64 __m2)
254
+ ;
255
+
256
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
257
+ _m_paddsw (__m64 __m1, __m64 __m2)
258
+ ;
259
+
260
+ /* Add the 8-bit values in M1 to the 8-bit values in M2 using unsigned
261
+ saturated arithmetic. */
262
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
263
+ _mm_adds_pu8 (__m64 __m1, __m64 __m2)
264
+ ;
265
+
266
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
267
+ _m_paddusb (__m64 __m1, __m64 __m2)
268
+ ;
269
+
270
+ /* Add the 16-bit values in M1 to the 16-bit values in M2 using unsigned
271
+ saturated arithmetic. */
272
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
273
+ _mm_adds_pu16 (__m64 __m1, __m64 __m2)
274
+ ;
275
+
276
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
277
+ _m_paddusw (__m64 __m1, __m64 __m2)
278
+ ;
279
+
280
+ /* Subtract the 8-bit values in M2 from the 8-bit values in M1. */
281
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
282
+ _mm_sub_pi8 (__m64 __m1, __m64 __m2)
283
+ ;
284
+
285
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
286
+ _m_psubb (__m64 __m1, __m64 __m2)
287
+ ;
288
+
289
+ /* Subtract the 16-bit values in M2 from the 16-bit values in M1. */
290
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
291
+ _mm_sub_pi16 (__m64 __m1, __m64 __m2)
292
+ ;
293
+
294
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
295
+ _m_psubw (__m64 __m1, __m64 __m2)
296
+ ;
297
+
298
+ /* Subtract the 32-bit values in M2 from the 32-bit values in M1. */
299
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
300
+ _mm_sub_pi32 (__m64 __m1, __m64 __m2)
301
+ ;
302
+
303
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
304
+ _m_psubd (__m64 __m1, __m64 __m2)
305
+ ;
306
+
307
+ /* Add the 64-bit values in M1 to the 64-bit values in M2. */
308
+ #ifdef __SSE2__
309
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
310
+ _mm_sub_si64 (__m64 __m1, __m64 __m2)
311
+ ;
312
+ #endif
313
+
314
+ /* Subtract the 8-bit values in M2 from the 8-bit values in M1 using signed
315
+ saturating arithmetic. */
316
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
317
+ _mm_subs_pi8 (__m64 __m1, __m64 __m2)
318
+ ;
319
+
320
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
321
+ _m_psubsb (__m64 __m1, __m64 __m2)
322
+ ;
323
+
324
+ /* Subtract the 16-bit values in M2 from the 16-bit values in M1 using
325
+ signed saturating arithmetic. */
326
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
327
+ _mm_subs_pi16 (__m64 __m1, __m64 __m2)
328
+ ;
329
+
330
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
331
+ _m_psubsw (__m64 __m1, __m64 __m2)
332
+ ;
333
+
334
+ /* Subtract the 8-bit values in M2 from the 8-bit values in M1 using
335
+ unsigned saturating arithmetic. */
336
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
337
+ _mm_subs_pu8 (__m64 __m1, __m64 __m2)
338
+ ;
339
+
340
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
341
+ _m_psubusb (__m64 __m1, __m64 __m2)
342
+ ;
343
+
344
+ /* Subtract the 16-bit values in M2 from the 16-bit values in M1 using
345
+ unsigned saturating arithmetic. */
346
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
347
+ _mm_subs_pu16 (__m64 __m1, __m64 __m2)
348
+ ;
349
+
350
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
351
+ _m_psubusw (__m64 __m1, __m64 __m2)
352
+ ;
353
+
354
+ /* Multiply four 16-bit values in M1 by four 16-bit values in M2 producing
355
+ four 32-bit intermediate results, which are then summed by pairs to
356
+ produce two 32-bit results. */
357
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
358
+ _mm_madd_pi16 (__m64 __m1, __m64 __m2)
359
+ ;
360
+
361
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
362
+ _m_pmaddwd (__m64 __m1, __m64 __m2)
363
+ ;
364
+
365
+ /* Multiply four signed 16-bit values in M1 by four signed 16-bit values in
366
+ M2 and produce the high 16 bits of the 32-bit results. */
367
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
368
+ _mm_mulhi_pi16 (__m64 __m1, __m64 __m2)
369
+ ;
370
+
371
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
372
+ _m_pmulhw (__m64 __m1, __m64 __m2)
373
+ ;
374
+
375
+ /* Multiply four 16-bit values in M1 by four 16-bit values in M2 and produce
376
+ the low 16 bits of the results. */
377
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
378
+ _mm_mullo_pi16 (__m64 __m1, __m64 __m2)
379
+ ;
380
+
381
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
382
+ _m_pmullw (__m64 __m1, __m64 __m2)
383
+ ;
384
+
385
+ /* Shift four 16-bit values in M left by COUNT. */
386
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
387
+ _mm_sll_pi16 (__m64 __m, __m64 __count)
388
+ ;
389
+
390
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
391
+ _m_psllw (__m64 __m, __m64 __count)
392
+ ;
393
+
394
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
395
+ _mm_slli_pi16 (__m64 __m, int __count)
396
+ ;
397
+
398
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
399
+ _m_psllwi (__m64 __m, int __count)
400
+ ;
401
+
402
+ /* Shift two 32-bit values in M left by COUNT. */
403
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
404
+ _mm_sll_pi32 (__m64 __m, __m64 __count)
405
+ ;
406
+
407
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
408
+ _m_pslld (__m64 __m, __m64 __count)
409
+ ;
410
+
411
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
412
+ _mm_slli_pi32 (__m64 __m, int __count)
413
+ ;
414
+
415
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
416
+ _m_pslldi (__m64 __m, int __count)
417
+ ;
418
+
419
+ /* Shift the 64-bit value in M left by COUNT. */
420
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
421
+ _mm_sll_si64 (__m64 __m, __m64 __count)
422
+ ;
423
+
424
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
425
+ _m_psllq (__m64 __m, __m64 __count)
426
+ ;
427
+
428
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
429
+ _mm_slli_si64 (__m64 __m, int __count)
430
+ ;
431
+
432
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
433
+ _m_psllqi (__m64 __m, int __count)
434
+ ;
435
+
436
+ /* Shift four 16-bit values in M right by COUNT; shift in the sign bit. */
437
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
438
+ _mm_sra_pi16 (__m64 __m, __m64 __count)
439
+ ;
440
+
441
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
442
+ _m_psraw (__m64 __m, __m64 __count)
443
+ ;
444
+
445
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
446
+ _mm_srai_pi16 (__m64 __m, int __count)
447
+ ;
448
+
449
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
450
+ _m_psrawi (__m64 __m, int __count)
451
+ ;
452
+
453
+ /* Shift two 32-bit values in M right by COUNT; shift in the sign bit. */
454
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
455
+ _mm_sra_pi32 (__m64 __m, __m64 __count)
456
+ ;
457
+
458
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
459
+ _m_psrad (__m64 __m, __m64 __count)
460
+ ;
461
+
462
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
463
+ _mm_srai_pi32 (__m64 __m, int __count)
464
+ ;
465
+
466
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
467
+ _m_psradi (__m64 __m, int __count)
468
+ ;
469
+
470
+ /* Shift four 16-bit values in M right by COUNT; shift in zeros. */
471
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
472
+ _mm_srl_pi16 (__m64 __m, __m64 __count)
473
+ ;
474
+
475
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
476
+ _m_psrlw (__m64 __m, __m64 __count)
477
+ ;
478
+
479
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
480
+ _mm_srli_pi16 (__m64 __m, int __count)
481
+ ;
482
+
483
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
484
+ _m_psrlwi (__m64 __m, int __count)
485
+ ;
486
+
487
+ /* Shift two 32-bit values in M right by COUNT; shift in zeros. */
488
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
489
+ _mm_srl_pi32 (__m64 __m, __m64 __count)
490
+ ;
491
+
492
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
493
+ _m_psrld (__m64 __m, __m64 __count)
494
+ ;
495
+
496
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
497
+ _mm_srli_pi32 (__m64 __m, int __count)
498
+ ;
499
+
500
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
501
+ _m_psrldi (__m64 __m, int __count)
502
+ ;
503
+
504
+ /* Shift the 64-bit value in M left by COUNT; shift in zeros. */
505
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
506
+ _mm_srl_si64 (__m64 __m, __m64 __count)
507
+ ;
508
+
509
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
510
+ _m_psrlq (__m64 __m, __m64 __count)
511
+ ;
512
+
513
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
514
+ _mm_srli_si64 (__m64 __m, int __count)
515
+ ;
516
+
517
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
518
+ _m_psrlqi (__m64 __m, int __count)
519
+ ;
520
+
521
+ /* Bit-wise AND the 64-bit values in M1 and M2. */
522
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
523
+ _mm_and_si64 (__m64 __m1, __m64 __m2)
524
+ ;
525
+
526
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
527
+ _m_pand (__m64 __m1, __m64 __m2)
528
+ ;
529
+
530
+ /* Bit-wise complement the 64-bit value in M1 and bit-wise AND it with the
531
+ 64-bit value in M2. */
532
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
533
+ _mm_andnot_si64 (__m64 __m1, __m64 __m2)
534
+ ;
535
+
536
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
537
+ _m_pandn (__m64 __m1, __m64 __m2)
538
+ ;
539
+
540
+ /* Bit-wise inclusive OR the 64-bit values in M1 and M2. */
541
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
542
+ _mm_or_si64 (__m64 __m1, __m64 __m2)
543
+ ;
544
+
545
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
546
+ _m_por (__m64 __m1, __m64 __m2)
547
+ ;
548
+
549
+ /* Bit-wise exclusive OR the 64-bit values in M1 and M2. */
550
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
551
+ _mm_xor_si64 (__m64 __m1, __m64 __m2)
552
+ ;
553
+
554
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
555
+ _m_pxor (__m64 __m1, __m64 __m2)
556
+ ;
557
+
558
+ /* Compare eight 8-bit values. The result of the comparison is 0xFF if the
559
+ test is true and zero if false. */
560
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
561
+ _mm_cmpeq_pi8 (__m64 __m1, __m64 __m2)
562
+ ;
563
+
564
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
565
+ _m_pcmpeqb (__m64 __m1, __m64 __m2)
566
+ ;
567
+
568
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
569
+ _mm_cmpgt_pi8 (__m64 __m1, __m64 __m2)
570
+ ;
571
+
572
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
573
+ _m_pcmpgtb (__m64 __m1, __m64 __m2)
574
+ ;
575
+
576
+ /* Compare four 16-bit values. The result of the comparison is 0xFFFF if
577
+ the test is true and zero if false. */
578
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
579
+ _mm_cmpeq_pi16 (__m64 __m1, __m64 __m2)
580
+ ;
581
+
582
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
583
+ _m_pcmpeqw (__m64 __m1, __m64 __m2)
584
+ ;
585
+
586
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
587
+ _mm_cmpgt_pi16 (__m64 __m1, __m64 __m2)
588
+ ;
589
+
590
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
591
+ _m_pcmpgtw (__m64 __m1, __m64 __m2)
592
+ ;
593
+
594
+ /* Compare two 32-bit values. The result of the comparison is 0xFFFFFFFF if
595
+ the test is true and zero if false. */
596
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
597
+ _mm_cmpeq_pi32 (__m64 __m1, __m64 __m2)
598
+ ;
599
+
600
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
601
+ _m_pcmpeqd (__m64 __m1, __m64 __m2)
602
+ ;
603
+
604
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
605
+ _mm_cmpgt_pi32 (__m64 __m1, __m64 __m2)
606
+ ;
607
+
608
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
609
+ _m_pcmpgtd (__m64 __m1, __m64 __m2)
610
+ ;
611
+
612
+ /* Creates a 64-bit zero. */
613
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
614
+ _mm_setzero_si64 (void)
615
+ ;
616
+
617
+ /* Creates a vector of two 32-bit values; I0 is least significant. */
618
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
619
+ _mm_set_pi32 (int __i1, int __i0)
620
+ ;
621
+
622
+ /* Creates a vector of four 16-bit values; W0 is least significant. */
623
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
624
+ _mm_set_pi16 (short __w3, short __w2, short __w1, short __w0)
625
+ ;
626
+
627
+ /* Creates a vector of eight 8-bit values; B0 is least significant. */
628
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
629
+ _mm_set_pi8 (char __b7, char __b6, char __b5, char __b4,
630
+ char __b3, char __b2, char __b1, char __b0)
631
+ ;
632
+
633
+ /* Similar, but with the arguments in reverse order. */
634
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
635
+ _mm_setr_pi32 (int __i0, int __i1)
636
+ ;
637
+
638
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
639
+ _mm_setr_pi16 (short __w0, short __w1, short __w2, short __w3)
640
+ ;
641
+
642
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
643
+ _mm_setr_pi8 (char __b0, char __b1, char __b2, char __b3,
644
+ char __b4, char __b5, char __b6, char __b7)
645
+ ;
646
+
647
+ /* Creates a vector of two 32-bit values, both elements containing I. */
648
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
649
+ _mm_set1_pi32 (int __i)
650
+ ;
651
+
652
+ /* Creates a vector of four 16-bit values, all elements containing W. */
653
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
654
+ _mm_set1_pi16 (short __w)
655
+ ;
656
+
657
+ /* Creates a vector of eight 8-bit values, all elements containing B. */
658
+ extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
659
+ _mm_set1_pi8 (char __b)
660
+ ;
661
+
662
+ #endif /* __MMX__ */
663
+ #endif /* _MMINTRIN_H_INCLUDED */