Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Kretz <kretz@kde.org>
  • Loading branch information
mattkretz committed Feb 23, 2016
1 parent ea8087b commit ae303f2
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions common/simdarray.h
Original file line number Diff line number Diff line change
Expand Up @@ -1251,21 +1251,21 @@ using is_integer_larger_than_int = std::integral_constant<
std::is_same<T, unsigned long>::value)>;

template <
typename L, typename R, std::size_t N = Traits::isSimdArray<L>::value
? Traits::simd_vector_size<L>::value
: Traits::simd_vector_size<R>::value,
bool = (Traits::isSimdArray<L>::value ||
Traits::isSimdArray<R>::value) // one of the operands must be a SimdArray
&&
!std::is_same<type<L>, type<R>>::value // if the operands are of the same type
typename L, typename R,
std::size_t N = Traits::isSimdArray<L>::value ? Traits::simd_vector_size<L>::value
: Traits::simd_vector_size<R>::value,
bool =
(Traits::isSimdArray<L>::value ||
Traits::isSimdArray<R>::value) // one of the operands must be a SimdArray
&& !std::is_same<type<L>, type<R>>::value // if the operands are of the same type
// use the member function
&&
((std::is_arithmetic<type<L>>::value &&
!is_integer_larger_than_int<type<L>>::value) ||
(std::is_arithmetic<type<R>>::value &&
!is_integer_larger_than_int<
type<R>>::value) // one of the operands is a scalar type
||
&&
((std::is_arithmetic<type<L>>::value &&
!is_integer_larger_than_int<type<L>>::value) ||
(std::is_arithmetic<type<R>>::value &&
!is_integer_larger_than_int<type<R>>::value) // one of the operands is a scalar
// type
||
( // or one of the operands is Vector<T> with Vector<T>::size() ==
// SimdArray::size()
Traits::simd_vector_size<L>::value == Traits::simd_vector_size<R>::value &&
Expand Down

0 comments on commit ae303f2

Please sign in to comment.