| 1 | #ifndef BOOST_QVM_GEN_SWIZZLE2_HPP_INCLUDED |
| 2 | #define BOOST_QVM_GEN_SWIZZLE2_HPP_INCLUDED |
| 3 | |
| 4 | // Copyright 2008-2022 Emil Dotchevski and Reverge Studios, Inc. |
| 5 | |
| 6 | // Distributed under the Boost Software License, Version 1.0. (See accompanying |
| 7 | // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) |
| 8 | |
| 9 | // This file was generated by a program. Do not edit manually. |
| 10 | |
| 11 | #include <boost/qvm/config.hpp> |
| 12 | #include <boost/qvm/detail/swizzle_traits.hpp> |
| 13 | #include <boost/qvm/enable_if.hpp> |
| 14 | |
| 15 | namespace boost { namespace qvm { |
| 16 | |
| 17 | BOOST_QVM_INLINE_TRIVIAL |
| 18 | qvm_detail::sw01_<qvm_detail::swizzle_idx<-2,qvm_detail::swizzle_idx<-2 > > > const & |
| 19 | _11() |
| 20 | { |
| 21 | return *reinterpret_cast<qvm_detail::sw01_<qvm_detail::swizzle_idx<-2,qvm_detail::swizzle_idx<-2 > > > const *>(qvm_detail::get_null()); |
| 22 | } |
| 23 | BOOST_QVM_INLINE_TRIVIAL |
| 24 | qvm_detail::sw01_<qvm_detail::swizzle_idx<-1,qvm_detail::swizzle_idx<-2 > > > const & |
| 25 | _01() |
| 26 | { |
| 27 | return *reinterpret_cast<qvm_detail::sw01_<qvm_detail::swizzle_idx<-1,qvm_detail::swizzle_idx<-2 > > > const *>(qvm_detail::get_null()); |
| 28 | } |
| 29 | template <class V> |
| 30 | BOOST_QVM_INLINE_TRIVIAL |
| 31 | typename enable_if_c< |
| 32 | is_vec<V>::value && vec_traits<V>::dim>=4, |
| 33 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<3,qvm_detail::swizzle_idx<-2 > > > const &>::type |
| 34 | W1( V const & a ) |
| 35 | { |
| 36 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<3,qvm_detail::swizzle_idx<-2 > > > const &>(a); |
| 37 | } |
| 38 | template <class V> |
| 39 | BOOST_QVM_INLINE_TRIVIAL |
| 40 | typename enable_if_c< |
| 41 | is_vec<V>::value && vec_traits<V>::dim>=4, |
| 42 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<3,qvm_detail::swizzle_idx<-2 > > > &>::type |
| 43 | W1( V & a ) |
| 44 | { |
| 45 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<3,qvm_detail::swizzle_idx<-2 > > > &>(a); |
| 46 | } |
| 47 | template <class V> |
| 48 | BOOST_QVM_INLINE_TRIVIAL |
| 49 | typename enable_if_c< |
| 50 | is_vec<V>::value && vec_traits<V>::dim>=3, |
| 51 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<2,qvm_detail::swizzle_idx<-2 > > > const &>::type |
| 52 | Z1( V const & a ) |
| 53 | { |
| 54 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<2,qvm_detail::swizzle_idx<-2 > > > const &>(a); |
| 55 | } |
| 56 | template <class V> |
| 57 | BOOST_QVM_INLINE_TRIVIAL |
| 58 | typename enable_if_c< |
| 59 | is_vec<V>::value && vec_traits<V>::dim>=3, |
| 60 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<2,qvm_detail::swizzle_idx<-2 > > > &>::type |
| 61 | Z1( V & a ) |
| 62 | { |
| 63 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<2,qvm_detail::swizzle_idx<-2 > > > &>(a); |
| 64 | } |
| 65 | template <class V> |
| 66 | BOOST_QVM_INLINE_TRIVIAL |
| 67 | typename enable_if_c< |
| 68 | is_vec<V>::value && vec_traits<V>::dim>=2, |
| 69 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<1,qvm_detail::swizzle_idx<-2 > > > const &>::type |
| 70 | Y1( V const & a ) |
| 71 | { |
| 72 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<1,qvm_detail::swizzle_idx<-2 > > > const &>(a); |
| 73 | } |
| 74 | template <class V> |
| 75 | BOOST_QVM_INLINE_TRIVIAL |
| 76 | typename enable_if_c< |
| 77 | is_vec<V>::value && vec_traits<V>::dim>=2, |
| 78 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<1,qvm_detail::swizzle_idx<-2 > > > &>::type |
| 79 | Y1( V & a ) |
| 80 | { |
| 81 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<1,qvm_detail::swizzle_idx<-2 > > > &>(a); |
| 82 | } |
| 83 | template <class V> |
| 84 | BOOST_QVM_INLINE_TRIVIAL |
| 85 | typename enable_if_c< |
| 86 | is_vec<V>::value && vec_traits<V>::dim>=1, |
| 87 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<0,qvm_detail::swizzle_idx<-2 > > > const &>::type |
| 88 | X1( V const & a ) |
| 89 | { |
| 90 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<0,qvm_detail::swizzle_idx<-2 > > > const &>(a); |
| 91 | } |
| 92 | template <class S> |
| 93 | BOOST_QVM_INLINE_TRIVIAL |
| 94 | typename enable_if_c< |
| 95 | is_scalar<S>::value, |
| 96 | qvm_detail::sws_<S,qvm_detail::swizzle_idx<0,qvm_detail::swizzle_idx<-2 > > > const &>::type |
| 97 | X1( S const & a ) |
| 98 | { |
| 99 | return reinterpret_cast<qvm_detail::sws_<S,qvm_detail::swizzle_idx<0,qvm_detail::swizzle_idx<-2 > > > const &>(a); |
| 100 | } |
| 101 | template <class V> |
| 102 | BOOST_QVM_INLINE_TRIVIAL |
| 103 | typename enable_if_c< |
| 104 | is_vec<V>::value && vec_traits<V>::dim>=1, |
| 105 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<0,qvm_detail::swizzle_idx<-2 > > > &>::type |
| 106 | X1( V & a ) |
| 107 | { |
| 108 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<0,qvm_detail::swizzle_idx<-2 > > > &>(a); |
| 109 | } |
| 110 | template <class S> |
| 111 | BOOST_QVM_INLINE_TRIVIAL |
| 112 | typename enable_if_c< |
| 113 | is_scalar<S>::value, |
| 114 | qvm_detail::sws_<S,qvm_detail::swizzle_idx<0,qvm_detail::swizzle_idx<-2 > > > &>::type |
| 115 | X1( S & a ) |
| 116 | { |
| 117 | return reinterpret_cast<qvm_detail::sws_<S,qvm_detail::swizzle_idx<0,qvm_detail::swizzle_idx<-2 > > > &>(a); |
| 118 | } |
| 119 | BOOST_QVM_INLINE_TRIVIAL |
| 120 | qvm_detail::sw01_<qvm_detail::swizzle_idx<-2,qvm_detail::swizzle_idx<-1 > > > const & |
| 121 | _10() |
| 122 | { |
| 123 | return *reinterpret_cast<qvm_detail::sw01_<qvm_detail::swizzle_idx<-2,qvm_detail::swizzle_idx<-1 > > > const *>(qvm_detail::get_null()); |
| 124 | } |
| 125 | BOOST_QVM_INLINE_TRIVIAL |
| 126 | qvm_detail::sw01_<qvm_detail::swizzle_idx<-1,qvm_detail::swizzle_idx<-1 > > > const & |
| 127 | _00() |
| 128 | { |
| 129 | return *reinterpret_cast<qvm_detail::sw01_<qvm_detail::swizzle_idx<-1,qvm_detail::swizzle_idx<-1 > > > const *>(qvm_detail::get_null()); |
| 130 | } |
| 131 | template <class V> |
| 132 | BOOST_QVM_INLINE_TRIVIAL |
| 133 | typename enable_if_c< |
| 134 | is_vec<V>::value && vec_traits<V>::dim>=4, |
| 135 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<3,qvm_detail::swizzle_idx<-1 > > > const &>::type |
| 136 | W0( V const & a ) |
| 137 | { |
| 138 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<3,qvm_detail::swizzle_idx<-1 > > > const &>(a); |
| 139 | } |
| 140 | template <class V> |
| 141 | BOOST_QVM_INLINE_TRIVIAL |
| 142 | typename enable_if_c< |
| 143 | is_vec<V>::value && vec_traits<V>::dim>=4, |
| 144 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<3,qvm_detail::swizzle_idx<-1 > > > &>::type |
| 145 | W0( V & a ) |
| 146 | { |
| 147 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<3,qvm_detail::swizzle_idx<-1 > > > &>(a); |
| 148 | } |
| 149 | template <class V> |
| 150 | BOOST_QVM_INLINE_TRIVIAL |
| 151 | typename enable_if_c< |
| 152 | is_vec<V>::value && vec_traits<V>::dim>=3, |
| 153 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<2,qvm_detail::swizzle_idx<-1 > > > const &>::type |
| 154 | Z0( V const & a ) |
| 155 | { |
| 156 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<2,qvm_detail::swizzle_idx<-1 > > > const &>(a); |
| 157 | } |
| 158 | template <class V> |
| 159 | BOOST_QVM_INLINE_TRIVIAL |
| 160 | typename enable_if_c< |
| 161 | is_vec<V>::value && vec_traits<V>::dim>=3, |
| 162 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<2,qvm_detail::swizzle_idx<-1 > > > &>::type |
| 163 | Z0( V & a ) |
| 164 | { |
| 165 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<2,qvm_detail::swizzle_idx<-1 > > > &>(a); |
| 166 | } |
| 167 | template <class V> |
| 168 | BOOST_QVM_INLINE_TRIVIAL |
| 169 | typename enable_if_c< |
| 170 | is_vec<V>::value && vec_traits<V>::dim>=2, |
| 171 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<1,qvm_detail::swizzle_idx<-1 > > > const &>::type |
| 172 | Y0( V const & a ) |
| 173 | { |
| 174 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<1,qvm_detail::swizzle_idx<-1 > > > const &>(a); |
| 175 | } |
| 176 | template <class V> |
| 177 | BOOST_QVM_INLINE_TRIVIAL |
| 178 | typename enable_if_c< |
| 179 | is_vec<V>::value && vec_traits<V>::dim>=2, |
| 180 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<1,qvm_detail::swizzle_idx<-1 > > > &>::type |
| 181 | Y0( V & a ) |
| 182 | { |
| 183 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<1,qvm_detail::swizzle_idx<-1 > > > &>(a); |
| 184 | } |
| 185 | template <class V> |
| 186 | BOOST_QVM_INLINE_TRIVIAL |
| 187 | typename enable_if_c< |
| 188 | is_vec<V>::value && vec_traits<V>::dim>=1, |
| 189 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<0,qvm_detail::swizzle_idx<-1 > > > const &>::type |
| 190 | X0( V const & a ) |
| 191 | { |
| 192 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<0,qvm_detail::swizzle_idx<-1 > > > const &>(a); |
| 193 | } |
| 194 | template <class S> |
| 195 | BOOST_QVM_INLINE_TRIVIAL |
| 196 | typename enable_if_c< |
| 197 | is_scalar<S>::value, |
| 198 | qvm_detail::sws_<S,qvm_detail::swizzle_idx<0,qvm_detail::swizzle_idx<-1 > > > const &>::type |
| 199 | X0( S const & a ) |
| 200 | { |
| 201 | return reinterpret_cast<qvm_detail::sws_<S,qvm_detail::swizzle_idx<0,qvm_detail::swizzle_idx<-1 > > > const &>(a); |
| 202 | } |
| 203 | template <class V> |
| 204 | BOOST_QVM_INLINE_TRIVIAL |
| 205 | typename enable_if_c< |
| 206 | is_vec<V>::value && vec_traits<V>::dim>=1, |
| 207 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<0,qvm_detail::swizzle_idx<-1 > > > &>::type |
| 208 | X0( V & a ) |
| 209 | { |
| 210 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<0,qvm_detail::swizzle_idx<-1 > > > &>(a); |
| 211 | } |
| 212 | template <class S> |
| 213 | BOOST_QVM_INLINE_TRIVIAL |
| 214 | typename enable_if_c< |
| 215 | is_scalar<S>::value, |
| 216 | qvm_detail::sws_<S,qvm_detail::swizzle_idx<0,qvm_detail::swizzle_idx<-1 > > > &>::type |
| 217 | X0( S & a ) |
| 218 | { |
| 219 | return reinterpret_cast<qvm_detail::sws_<S,qvm_detail::swizzle_idx<0,qvm_detail::swizzle_idx<-1 > > > &>(a); |
| 220 | } |
| 221 | template <class V> |
| 222 | BOOST_QVM_INLINE_TRIVIAL |
| 223 | typename enable_if_c< |
| 224 | is_vec<V>::value && vec_traits<V>::dim>=4, |
| 225 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<-2,qvm_detail::swizzle_idx<3 > > > const &>::type |
| 226 | _1W( V const & a ) |
| 227 | { |
| 228 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<-2,qvm_detail::swizzle_idx<3 > > > const &>(a); |
| 229 | } |
| 230 | template <class V> |
| 231 | BOOST_QVM_INLINE_TRIVIAL |
| 232 | typename enable_if_c< |
| 233 | is_vec<V>::value && vec_traits<V>::dim>=4, |
| 234 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<-2,qvm_detail::swizzle_idx<3 > > > &>::type |
| 235 | _1W( V & a ) |
| 236 | { |
| 237 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<-2,qvm_detail::swizzle_idx<3 > > > &>(a); |
| 238 | } |
| 239 | template <class V> |
| 240 | BOOST_QVM_INLINE_TRIVIAL |
| 241 | typename enable_if_c< |
| 242 | is_vec<V>::value && vec_traits<V>::dim>=4, |
| 243 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<-1,qvm_detail::swizzle_idx<3 > > > const &>::type |
| 244 | _0W( V const & a ) |
| 245 | { |
| 246 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<-1,qvm_detail::swizzle_idx<3 > > > const &>(a); |
| 247 | } |
| 248 | template <class V> |
| 249 | BOOST_QVM_INLINE_TRIVIAL |
| 250 | typename enable_if_c< |
| 251 | is_vec<V>::value && vec_traits<V>::dim>=4, |
| 252 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<-1,qvm_detail::swizzle_idx<3 > > > &>::type |
| 253 | _0W( V & a ) |
| 254 | { |
| 255 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<-1,qvm_detail::swizzle_idx<3 > > > &>(a); |
| 256 | } |
| 257 | template <class V> |
| 258 | BOOST_QVM_INLINE_TRIVIAL |
| 259 | typename enable_if_c< |
| 260 | is_vec<V>::value && vec_traits<V>::dim>=4, |
| 261 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<3,qvm_detail::swizzle_idx<3 > > > const &>::type |
| 262 | WW( V const & a ) |
| 263 | { |
| 264 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<3,qvm_detail::swizzle_idx<3 > > > const &>(a); |
| 265 | } |
| 266 | template <class V> |
| 267 | BOOST_QVM_INLINE_TRIVIAL |
| 268 | typename enable_if_c< |
| 269 | is_vec<V>::value && vec_traits<V>::dim>=4, |
| 270 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<3,qvm_detail::swizzle_idx<3 > > > &>::type |
| 271 | WW( V & a ) |
| 272 | { |
| 273 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<3,qvm_detail::swizzle_idx<3 > > > &>(a); |
| 274 | } |
| 275 | template <class V> |
| 276 | BOOST_QVM_INLINE_TRIVIAL |
| 277 | typename enable_if_c< |
| 278 | is_vec<V>::value && vec_traits<V>::dim>=4, |
| 279 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<2,qvm_detail::swizzle_idx<3 > > > const &>::type |
| 280 | ZW( V const & a ) |
| 281 | { |
| 282 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<2,qvm_detail::swizzle_idx<3 > > > const &>(a); |
| 283 | } |
| 284 | template <class V> |
| 285 | BOOST_QVM_INLINE_TRIVIAL |
| 286 | typename enable_if_c< |
| 287 | is_vec<V>::value && vec_traits<V>::dim>=4, |
| 288 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<2,qvm_detail::swizzle_idx<3 > > > &>::type |
| 289 | ZW( V & a ) |
| 290 | { |
| 291 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<2,qvm_detail::swizzle_idx<3 > > > &>(a); |
| 292 | } |
| 293 | template <class V> |
| 294 | BOOST_QVM_INLINE_TRIVIAL |
| 295 | typename enable_if_c< |
| 296 | is_vec<V>::value && vec_traits<V>::dim>=4, |
| 297 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<1,qvm_detail::swizzle_idx<3 > > > const &>::type |
| 298 | YW( V const & a ) |
| 299 | { |
| 300 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<1,qvm_detail::swizzle_idx<3 > > > const &>(a); |
| 301 | } |
| 302 | template <class V> |
| 303 | BOOST_QVM_INLINE_TRIVIAL |
| 304 | typename enable_if_c< |
| 305 | is_vec<V>::value && vec_traits<V>::dim>=4, |
| 306 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<1,qvm_detail::swizzle_idx<3 > > > &>::type |
| 307 | YW( V & a ) |
| 308 | { |
| 309 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<1,qvm_detail::swizzle_idx<3 > > > &>(a); |
| 310 | } |
| 311 | template <class V> |
| 312 | BOOST_QVM_INLINE_TRIVIAL |
| 313 | typename enable_if_c< |
| 314 | is_vec<V>::value && vec_traits<V>::dim>=4, |
| 315 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<0,qvm_detail::swizzle_idx<3 > > > const &>::type |
| 316 | XW( V const & a ) |
| 317 | { |
| 318 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<0,qvm_detail::swizzle_idx<3 > > > const &>(a); |
| 319 | } |
| 320 | template <class V> |
| 321 | BOOST_QVM_INLINE_TRIVIAL |
| 322 | typename enable_if_c< |
| 323 | is_vec<V>::value && vec_traits<V>::dim>=4, |
| 324 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<0,qvm_detail::swizzle_idx<3 > > > &>::type |
| 325 | XW( V & a ) |
| 326 | { |
| 327 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<0,qvm_detail::swizzle_idx<3 > > > &>(a); |
| 328 | } |
| 329 | template <class V> |
| 330 | BOOST_QVM_INLINE_TRIVIAL |
| 331 | typename enable_if_c< |
| 332 | is_vec<V>::value && vec_traits<V>::dim>=3, |
| 333 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<-2,qvm_detail::swizzle_idx<2 > > > const &>::type |
| 334 | _1Z( V const & a ) |
| 335 | { |
| 336 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<-2,qvm_detail::swizzle_idx<2 > > > const &>(a); |
| 337 | } |
| 338 | template <class V> |
| 339 | BOOST_QVM_INLINE_TRIVIAL |
| 340 | typename enable_if_c< |
| 341 | is_vec<V>::value && vec_traits<V>::dim>=3, |
| 342 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<-2,qvm_detail::swizzle_idx<2 > > > &>::type |
| 343 | _1Z( V & a ) |
| 344 | { |
| 345 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<-2,qvm_detail::swizzle_idx<2 > > > &>(a); |
| 346 | } |
| 347 | template <class V> |
| 348 | BOOST_QVM_INLINE_TRIVIAL |
| 349 | typename enable_if_c< |
| 350 | is_vec<V>::value && vec_traits<V>::dim>=3, |
| 351 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<-1,qvm_detail::swizzle_idx<2 > > > const &>::type |
| 352 | _0Z( V const & a ) |
| 353 | { |
| 354 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<-1,qvm_detail::swizzle_idx<2 > > > const &>(a); |
| 355 | } |
| 356 | template <class V> |
| 357 | BOOST_QVM_INLINE_TRIVIAL |
| 358 | typename enable_if_c< |
| 359 | is_vec<V>::value && vec_traits<V>::dim>=3, |
| 360 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<-1,qvm_detail::swizzle_idx<2 > > > &>::type |
| 361 | _0Z( V & a ) |
| 362 | { |
| 363 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<-1,qvm_detail::swizzle_idx<2 > > > &>(a); |
| 364 | } |
| 365 | template <class V> |
| 366 | BOOST_QVM_INLINE_TRIVIAL |
| 367 | typename enable_if_c< |
| 368 | is_vec<V>::value && vec_traits<V>::dim>=4, |
| 369 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<3,qvm_detail::swizzle_idx<2 > > > const &>::type |
| 370 | WZ( V const & a ) |
| 371 | { |
| 372 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<3,qvm_detail::swizzle_idx<2 > > > const &>(a); |
| 373 | } |
| 374 | template <class V> |
| 375 | BOOST_QVM_INLINE_TRIVIAL |
| 376 | typename enable_if_c< |
| 377 | is_vec<V>::value && vec_traits<V>::dim>=4, |
| 378 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<3,qvm_detail::swizzle_idx<2 > > > &>::type |
| 379 | WZ( V & a ) |
| 380 | { |
| 381 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<3,qvm_detail::swizzle_idx<2 > > > &>(a); |
| 382 | } |
| 383 | template <class V> |
| 384 | BOOST_QVM_INLINE_TRIVIAL |
| 385 | typename enable_if_c< |
| 386 | is_vec<V>::value && vec_traits<V>::dim>=3, |
| 387 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<2,qvm_detail::swizzle_idx<2 > > > const &>::type |
| 388 | ZZ( V const & a ) |
| 389 | { |
| 390 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<2,qvm_detail::swizzle_idx<2 > > > const &>(a); |
| 391 | } |
| 392 | template <class V> |
| 393 | BOOST_QVM_INLINE_TRIVIAL |
| 394 | typename enable_if_c< |
| 395 | is_vec<V>::value && vec_traits<V>::dim>=3, |
| 396 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<2,qvm_detail::swizzle_idx<2 > > > &>::type |
| 397 | ZZ( V & a ) |
| 398 | { |
| 399 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<2,qvm_detail::swizzle_idx<2 > > > &>(a); |
| 400 | } |
| 401 | template <class V> |
| 402 | BOOST_QVM_INLINE_TRIVIAL |
| 403 | typename enable_if_c< |
| 404 | is_vec<V>::value && vec_traits<V>::dim>=3, |
| 405 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<1,qvm_detail::swizzle_idx<2 > > > const &>::type |
| 406 | YZ( V const & a ) |
| 407 | { |
| 408 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<1,qvm_detail::swizzle_idx<2 > > > const &>(a); |
| 409 | } |
| 410 | template <class V> |
| 411 | BOOST_QVM_INLINE_TRIVIAL |
| 412 | typename enable_if_c< |
| 413 | is_vec<V>::value && vec_traits<V>::dim>=3, |
| 414 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<1,qvm_detail::swizzle_idx<2 > > > &>::type |
| 415 | YZ( V & a ) |
| 416 | { |
| 417 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<1,qvm_detail::swizzle_idx<2 > > > &>(a); |
| 418 | } |
| 419 | template <class V> |
| 420 | BOOST_QVM_INLINE_TRIVIAL |
| 421 | typename enable_if_c< |
| 422 | is_vec<V>::value && vec_traits<V>::dim>=3, |
| 423 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<0,qvm_detail::swizzle_idx<2 > > > const &>::type |
| 424 | XZ( V const & a ) |
| 425 | { |
| 426 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<0,qvm_detail::swizzle_idx<2 > > > const &>(a); |
| 427 | } |
| 428 | template <class V> |
| 429 | BOOST_QVM_INLINE_TRIVIAL |
| 430 | typename enable_if_c< |
| 431 | is_vec<V>::value && vec_traits<V>::dim>=3, |
| 432 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<0,qvm_detail::swizzle_idx<2 > > > &>::type |
| 433 | XZ( V & a ) |
| 434 | { |
| 435 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<0,qvm_detail::swizzle_idx<2 > > > &>(a); |
| 436 | } |
| 437 | template <class V> |
| 438 | BOOST_QVM_INLINE_TRIVIAL |
| 439 | typename enable_if_c< |
| 440 | is_vec<V>::value && vec_traits<V>::dim>=2, |
| 441 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<-2,qvm_detail::swizzle_idx<1 > > > const &>::type |
| 442 | _1Y( V const & a ) |
| 443 | { |
| 444 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<-2,qvm_detail::swizzle_idx<1 > > > const &>(a); |
| 445 | } |
| 446 | template <class V> |
| 447 | BOOST_QVM_INLINE_TRIVIAL |
| 448 | typename enable_if_c< |
| 449 | is_vec<V>::value && vec_traits<V>::dim>=2, |
| 450 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<-2,qvm_detail::swizzle_idx<1 > > > &>::type |
| 451 | _1Y( V & a ) |
| 452 | { |
| 453 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<-2,qvm_detail::swizzle_idx<1 > > > &>(a); |
| 454 | } |
| 455 | template <class V> |
| 456 | BOOST_QVM_INLINE_TRIVIAL |
| 457 | typename enable_if_c< |
| 458 | is_vec<V>::value && vec_traits<V>::dim>=2, |
| 459 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<-1,qvm_detail::swizzle_idx<1 > > > const &>::type |
| 460 | _0Y( V const & a ) |
| 461 | { |
| 462 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<-1,qvm_detail::swizzle_idx<1 > > > const &>(a); |
| 463 | } |
| 464 | template <class V> |
| 465 | BOOST_QVM_INLINE_TRIVIAL |
| 466 | typename enable_if_c< |
| 467 | is_vec<V>::value && vec_traits<V>::dim>=2, |
| 468 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<-1,qvm_detail::swizzle_idx<1 > > > &>::type |
| 469 | _0Y( V & a ) |
| 470 | { |
| 471 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<-1,qvm_detail::swizzle_idx<1 > > > &>(a); |
| 472 | } |
| 473 | template <class V> |
| 474 | BOOST_QVM_INLINE_TRIVIAL |
| 475 | typename enable_if_c< |
| 476 | is_vec<V>::value && vec_traits<V>::dim>=4, |
| 477 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<3,qvm_detail::swizzle_idx<1 > > > const &>::type |
| 478 | WY( V const & a ) |
| 479 | { |
| 480 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<3,qvm_detail::swizzle_idx<1 > > > const &>(a); |
| 481 | } |
| 482 | template <class V> |
| 483 | BOOST_QVM_INLINE_TRIVIAL |
| 484 | typename enable_if_c< |
| 485 | is_vec<V>::value && vec_traits<V>::dim>=4, |
| 486 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<3,qvm_detail::swizzle_idx<1 > > > &>::type |
| 487 | WY( V & a ) |
| 488 | { |
| 489 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<3,qvm_detail::swizzle_idx<1 > > > &>(a); |
| 490 | } |
| 491 | template <class V> |
| 492 | BOOST_QVM_INLINE_TRIVIAL |
| 493 | typename enable_if_c< |
| 494 | is_vec<V>::value && vec_traits<V>::dim>=3, |
| 495 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<2,qvm_detail::swizzle_idx<1 > > > const &>::type |
| 496 | ZY( V const & a ) |
| 497 | { |
| 498 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<2,qvm_detail::swizzle_idx<1 > > > const &>(a); |
| 499 | } |
| 500 | template <class V> |
| 501 | BOOST_QVM_INLINE_TRIVIAL |
| 502 | typename enable_if_c< |
| 503 | is_vec<V>::value && vec_traits<V>::dim>=3, |
| 504 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<2,qvm_detail::swizzle_idx<1 > > > &>::type |
| 505 | ZY( V & a ) |
| 506 | { |
| 507 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<2,qvm_detail::swizzle_idx<1 > > > &>(a); |
| 508 | } |
| 509 | template <class V> |
| 510 | BOOST_QVM_INLINE_TRIVIAL |
| 511 | typename enable_if_c< |
| 512 | is_vec<V>::value && vec_traits<V>::dim>=2, |
| 513 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<1,qvm_detail::swizzle_idx<1 > > > const &>::type |
| 514 | YY( V const & a ) |
| 515 | { |
| 516 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<1,qvm_detail::swizzle_idx<1 > > > const &>(a); |
| 517 | } |
| 518 | template <class V> |
| 519 | BOOST_QVM_INLINE_TRIVIAL |
| 520 | typename enable_if_c< |
| 521 | is_vec<V>::value && vec_traits<V>::dim>=2, |
| 522 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<1,qvm_detail::swizzle_idx<1 > > > &>::type |
| 523 | YY( V & a ) |
| 524 | { |
| 525 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<1,qvm_detail::swizzle_idx<1 > > > &>(a); |
| 526 | } |
| 527 | template <class V> |
| 528 | BOOST_QVM_INLINE_TRIVIAL |
| 529 | typename enable_if_c< |
| 530 | is_vec<V>::value && vec_traits<V>::dim>=2, |
| 531 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<0,qvm_detail::swizzle_idx<1 > > > const &>::type |
| 532 | XY( V const & a ) |
| 533 | { |
| 534 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<0,qvm_detail::swizzle_idx<1 > > > const &>(a); |
| 535 | } |
| 536 | template <class V> |
| 537 | BOOST_QVM_INLINE_TRIVIAL |
| 538 | typename enable_if_c< |
| 539 | is_vec<V>::value && vec_traits<V>::dim>=2, |
| 540 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<0,qvm_detail::swizzle_idx<1 > > > &>::type |
| 541 | XY( V & a ) |
| 542 | { |
| 543 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<0,qvm_detail::swizzle_idx<1 > > > &>(a); |
| 544 | } |
| 545 | template <class V> |
| 546 | BOOST_QVM_INLINE_TRIVIAL |
| 547 | typename enable_if_c< |
| 548 | is_vec<V>::value && vec_traits<V>::dim>=1, |
| 549 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<-2,qvm_detail::swizzle_idx<0 > > > const &>::type |
| 550 | _1X( V const & a ) |
| 551 | { |
| 552 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<-2,qvm_detail::swizzle_idx<0 > > > const &>(a); |
| 553 | } |
| 554 | template <class S> |
| 555 | BOOST_QVM_INLINE_TRIVIAL |
| 556 | typename enable_if_c< |
| 557 | is_scalar<S>::value, |
| 558 | qvm_detail::sws_<S,qvm_detail::swizzle_idx<-2,qvm_detail::swizzle_idx<0 > > > const &>::type |
| 559 | _1X( S const & a ) |
| 560 | { |
| 561 | return reinterpret_cast<qvm_detail::sws_<S,qvm_detail::swizzle_idx<-2,qvm_detail::swizzle_idx<0 > > > const &>(a); |
| 562 | } |
| 563 | template <class V> |
| 564 | BOOST_QVM_INLINE_TRIVIAL |
| 565 | typename enable_if_c< |
| 566 | is_vec<V>::value && vec_traits<V>::dim>=1, |
| 567 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<-2,qvm_detail::swizzle_idx<0 > > > &>::type |
| 568 | _1X( V & a ) |
| 569 | { |
| 570 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<-2,qvm_detail::swizzle_idx<0 > > > &>(a); |
| 571 | } |
| 572 | template <class S> |
| 573 | BOOST_QVM_INLINE_TRIVIAL |
| 574 | typename enable_if_c< |
| 575 | is_scalar<S>::value, |
| 576 | qvm_detail::sws_<S,qvm_detail::swizzle_idx<-2,qvm_detail::swizzle_idx<0 > > > &>::type |
| 577 | _1X( S & a ) |
| 578 | { |
| 579 | return reinterpret_cast<qvm_detail::sws_<S,qvm_detail::swizzle_idx<-2,qvm_detail::swizzle_idx<0 > > > &>(a); |
| 580 | } |
| 581 | template <class V> |
| 582 | BOOST_QVM_INLINE_TRIVIAL |
| 583 | typename enable_if_c< |
| 584 | is_vec<V>::value && vec_traits<V>::dim>=1, |
| 585 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<-1,qvm_detail::swizzle_idx<0 > > > const &>::type |
| 586 | _0X( V const & a ) |
| 587 | { |
| 588 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<-1,qvm_detail::swizzle_idx<0 > > > const &>(a); |
| 589 | } |
| 590 | template <class S> |
| 591 | BOOST_QVM_INLINE_TRIVIAL |
| 592 | typename enable_if_c< |
| 593 | is_scalar<S>::value, |
| 594 | qvm_detail::sws_<S,qvm_detail::swizzle_idx<-1,qvm_detail::swizzle_idx<0 > > > const &>::type |
| 595 | _0X( S const & a ) |
| 596 | { |
| 597 | return reinterpret_cast<qvm_detail::sws_<S,qvm_detail::swizzle_idx<-1,qvm_detail::swizzle_idx<0 > > > const &>(a); |
| 598 | } |
| 599 | template <class V> |
| 600 | BOOST_QVM_INLINE_TRIVIAL |
| 601 | typename enable_if_c< |
| 602 | is_vec<V>::value && vec_traits<V>::dim>=1, |
| 603 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<-1,qvm_detail::swizzle_idx<0 > > > &>::type |
| 604 | _0X( V & a ) |
| 605 | { |
| 606 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<-1,qvm_detail::swizzle_idx<0 > > > &>(a); |
| 607 | } |
| 608 | template <class S> |
| 609 | BOOST_QVM_INLINE_TRIVIAL |
| 610 | typename enable_if_c< |
| 611 | is_scalar<S>::value, |
| 612 | qvm_detail::sws_<S,qvm_detail::swizzle_idx<-1,qvm_detail::swizzle_idx<0 > > > &>::type |
| 613 | _0X( S & a ) |
| 614 | { |
| 615 | return reinterpret_cast<qvm_detail::sws_<S,qvm_detail::swizzle_idx<-1,qvm_detail::swizzle_idx<0 > > > &>(a); |
| 616 | } |
| 617 | template <class V> |
| 618 | BOOST_QVM_INLINE_TRIVIAL |
| 619 | typename enable_if_c< |
| 620 | is_vec<V>::value && vec_traits<V>::dim>=4, |
| 621 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<3,qvm_detail::swizzle_idx<0 > > > const &>::type |
| 622 | WX( V const & a ) |
| 623 | { |
| 624 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<3,qvm_detail::swizzle_idx<0 > > > const &>(a); |
| 625 | } |
| 626 | template <class V> |
| 627 | BOOST_QVM_INLINE_TRIVIAL |
| 628 | typename enable_if_c< |
| 629 | is_vec<V>::value && vec_traits<V>::dim>=4, |
| 630 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<3,qvm_detail::swizzle_idx<0 > > > &>::type |
| 631 | WX( V & a ) |
| 632 | { |
| 633 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<3,qvm_detail::swizzle_idx<0 > > > &>(a); |
| 634 | } |
| 635 | template <class V> |
| 636 | BOOST_QVM_INLINE_TRIVIAL |
| 637 | typename enable_if_c< |
| 638 | is_vec<V>::value && vec_traits<V>::dim>=3, |
| 639 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<2,qvm_detail::swizzle_idx<0 > > > const &>::type |
| 640 | ZX( V const & a ) |
| 641 | { |
| 642 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<2,qvm_detail::swizzle_idx<0 > > > const &>(a); |
| 643 | } |
| 644 | template <class V> |
| 645 | BOOST_QVM_INLINE_TRIVIAL |
| 646 | typename enable_if_c< |
| 647 | is_vec<V>::value && vec_traits<V>::dim>=3, |
| 648 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<2,qvm_detail::swizzle_idx<0 > > > &>::type |
| 649 | ZX( V & a ) |
| 650 | { |
| 651 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<2,qvm_detail::swizzle_idx<0 > > > &>(a); |
| 652 | } |
| 653 | template <class V> |
| 654 | BOOST_QVM_INLINE_TRIVIAL |
| 655 | typename enable_if_c< |
| 656 | is_vec<V>::value && vec_traits<V>::dim>=2, |
| 657 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<1,qvm_detail::swizzle_idx<0 > > > const &>::type |
| 658 | YX( V const & a ) |
| 659 | { |
| 660 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<1,qvm_detail::swizzle_idx<0 > > > const &>(a); |
| 661 | } |
| 662 | template <class V> |
| 663 | BOOST_QVM_INLINE_TRIVIAL |
| 664 | typename enable_if_c< |
| 665 | is_vec<V>::value && vec_traits<V>::dim>=2, |
| 666 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<1,qvm_detail::swizzle_idx<0 > > > &>::type |
| 667 | YX( V & a ) |
| 668 | { |
| 669 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<1,qvm_detail::swizzle_idx<0 > > > &>(a); |
| 670 | } |
| 671 | template <class V> |
| 672 | BOOST_QVM_INLINE_TRIVIAL |
| 673 | typename enable_if_c< |
| 674 | is_vec<V>::value && vec_traits<V>::dim>=1, |
| 675 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<0,qvm_detail::swizzle_idx<0 > > > const &>::type |
| 676 | XX( V const & a ) |
| 677 | { |
| 678 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<0,qvm_detail::swizzle_idx<0 > > > const &>(a); |
| 679 | } |
| 680 | template <class S> |
| 681 | BOOST_QVM_INLINE_TRIVIAL |
| 682 | typename enable_if_c< |
| 683 | is_scalar<S>::value, |
| 684 | qvm_detail::sws_<S,qvm_detail::swizzle_idx<0,qvm_detail::swizzle_idx<0 > > > const &>::type |
| 685 | XX( S const & a ) |
| 686 | { |
| 687 | return reinterpret_cast<qvm_detail::sws_<S,qvm_detail::swizzle_idx<0,qvm_detail::swizzle_idx<0 > > > const &>(a); |
| 688 | } |
| 689 | template <class V> |
| 690 | BOOST_QVM_INLINE_TRIVIAL |
| 691 | typename enable_if_c< |
| 692 | is_vec<V>::value && vec_traits<V>::dim>=1, |
| 693 | qvm_detail::sw_<V,qvm_detail::swizzle_idx<0,qvm_detail::swizzle_idx<0 > > > &>::type |
| 694 | XX( V & a ) |
| 695 | { |
| 696 | return reinterpret_cast<qvm_detail::sw_<V,qvm_detail::swizzle_idx<0,qvm_detail::swizzle_idx<0 > > > &>(a); |
| 697 | } |
| 698 | template <class S> |
| 699 | BOOST_QVM_INLINE_TRIVIAL |
| 700 | typename enable_if_c< |
| 701 | is_scalar<S>::value, |
| 702 | qvm_detail::sws_<S,qvm_detail::swizzle_idx<0,qvm_detail::swizzle_idx<0 > > > &>::type |
| 703 | XX( S & a ) |
| 704 | { |
| 705 | return reinterpret_cast<qvm_detail::sws_<S,qvm_detail::swizzle_idx<0,qvm_detail::swizzle_idx<0 > > > &>(a); |
| 706 | } |
| 707 | } } |
| 708 | |
| 709 | #endif |
| 710 | |