Skip to content

Commit

Permalink
Document Vector/Mask<T> aliases
Browse files Browse the repository at this point in the history
Refs: gh-66
Signed-off-by: Matthias Kretz <kretz@kde.org>
  • Loading branch information
mattkretz committed Nov 24, 2015
1 parent d5bd659 commit c86542f
Showing 1 changed file with 69 additions and 25 deletions.
94 changes: 69 additions & 25 deletions include/Vc/vector.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,31 +44,75 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

namespace Vc_VERSIONED_NAMESPACE
{
using double_v = Vector<double>;
using float_v = Vector< float>;
using llong_v = Vector< llong>;
using ullong_v = Vector<ullong>;
using long_v = Vector< long>;
using ulong_v = Vector< ulong>;
using int_v = Vector< int>;
using uint_v = Vector< uint>;
using short_v = Vector< short>;
using ushort_v = Vector<ushort>;
using schar_v = Vector< schar>;
using uchar_v = Vector< uchar>;

using double_m = Mask<double>;
using float_m = Mask< float>;
using llong_m = Mask< llong>;
using ullong_m = Mask<ullong>;
using long_m = Mask< long>;
using ulong_m = Mask< ulong>;
using int_m = Mask< int>;
using uint_m = Mask< uint>;
using short_m = Mask< short>;
using ushort_m = Mask<ushort>;
using schar_m = Mask< schar>;
using uchar_m = Mask< uchar>;
/**
* \name Vector Type Aliases
* \ingroup Vectors
*/
///@{
/**\addtogroup Vectors
* @{
*/
/// vector of double precision
using double_v = Vector<double>;
/// vector of single precision
using float_v = Vector<float>;
/// vector of signed integers
using int_v = Vector<int>;
/// vector of unsigned integers
using uint_v = Vector<uint>;
/// vector of signed short integers
using short_v = Vector<short>;
/// vector of unsigned short integers
using ushort_v = Vector<ushort>;
///\internal vector of signed long long integers
using llong_v = Vector<llong>;
///\internal vector of unsigned long long integers
using ullong_v = Vector<ullong>;
///\internal vector of signed long integers
using long_v = Vector<long>;
///\internal vector of unsigned long integers
using ulong_v = Vector<ulong>;
///\internal vector of signed char-sized integers
using schar_v = Vector<schar>;
///\internal vector of unsigned char-sized integers
using uchar_v = Vector<uchar>;
///@}
///@}

/**
* \name Mask Type Aliases
* \ingroup Masks
*/
///@{
/**\addtogroup Masks
* @{
*/
/// mask type for double_v vectors
using double_m = Mask<double>;
/// mask type for float_v vectors
using float_m = Mask< float>;
///\internal mask type for llong_v vectors
using llong_m = Mask< llong>;
///\internal mask type for ullong_v vectors
using ullong_m = Mask<ullong>;
///\internal mask type for long_v vectors
using long_m = Mask< long>;
///\internal mask type for ulong_v vectors
using ulong_m = Mask< ulong>;
/// mask type for int_v vectors
using int_m = Mask< int>;
/// mask type for uint_v vectors
using uint_m = Mask< uint>;
/// mask type for short_v vectors
using short_m = Mask< short>;
/// mask type for ushort_v vectors
using ushort_m = Mask<ushort>;
///\internal mask type for schar_v vectors
using schar_m = Mask< schar>;
///\internal mask type for uchar_v vectors
using uchar_m = Mask< uchar>;
///@}
///@}

typedef Vector<std:: int_least64_t> int_least64_v;
typedef Vector<std::uint_least64_t> uint_least64_v;
Expand Down

0 comments on commit c86542f

Please sign in to comment.