diff options
Diffstat (limited to 'boost/qvm/vec_register2.hpp')
-rw-r--r-- | boost/qvm/vec_register2.hpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/boost/qvm/vec_register2.hpp b/boost/qvm/vec_register2.hpp new file mode 100644 index 0000000000..970650df68 --- /dev/null +++ b/boost/qvm/vec_register2.hpp @@ -0,0 +1,25 @@ +//Copyright (c) 2008-2016 Emil Dotchevski and Reverge Studios, Inc. +//Copyright (c) 2018 agate-pris + +//Distributed under the Boost Software License, Version 1.0. (See accompanying +//file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + +#ifndef BOOST_QVM_VEC_REGISTER2_HPP +#define BOOST_QVM_VEC_REGISTER2_HPP + +#include <boost/qvm/detail/vec_register_impl.hpp> + +#define BOOST_QVM_REGISTER_VEC_2_READ(VecType, ScalarType, Read0, Read1) \ +BOOST_QVM_DETAIL_REGISTER_VEC_SPECIALIZE_VEC_TRAITS_READ(VecType, ScalarType, 2) \ +BOOST_QVM_DETAIL_SPECIALIZE_QVM_DETAIL_VEC_REGISTER_READ(VecType, ScalarType, 2, 0, Read0) \ +BOOST_QVM_DETAIL_SPECIALIZE_QVM_DETAIL_VEC_REGISTER_READ(VecType, ScalarType, 2, 1, Read1) + +#define BOOST_QVM_REGISTER_VEC_2_READ_WRITE(VecType, ScalarType, Read0, Read1, Write0, Write1) \ +BOOST_QVM_DETAIL_REGISTER_VEC_SPECIALIZE_VEC_TRAITS_READ_WRITE(VecType, ScalarType, 2) \ +BOOST_QVM_DETAIL_SPECIALIZE_QVM_DETAIL_VEC_REGISTER_READ_WRITE(VecType, ScalarType, 2, 0, Read0, Write0)\ +BOOST_QVM_DETAIL_SPECIALIZE_QVM_DETAIL_VEC_REGISTER_READ_WRITE(VecType, ScalarType, 2, 1, Read1, Write1) + +#define BOOST_QVM_REGISTER_VEC_2(VecType, ScalarType, Element0, Element1) \ +BOOST_QVM_REGISTER_VEC_2_READ_WRITE(VecType, ScalarType, Element0, Element1, Element0, Element1) + +#endif |