Skip to content

Commit

Permalink
Add Vc_INTRINSIC to fixed_size_simd operators
Browse files Browse the repository at this point in the history
  • Loading branch information
bmanga authored and bernhardmgruber committed Nov 16, 2021
1 parent 0f98e49 commit 7076d4a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Vc/common/simdarray.h
Original file line number Diff line number Diff line change
Expand Up @@ -1586,16 +1586,16 @@ namespace Detail
#define Vc_FIXED_OP(op) \
template <class T, int N, \
class = typename std::enable_if<fixed_size_simd<T, N>::is_atomic>::type> \
fixed_size_simd<T, N> operator op(const fixed_size_simd<T, N> &a, \
const fixed_size_simd<T, N> &b) \
Vc_INTRINSIC fixed_size_simd<T, N> operator op(const fixed_size_simd<T, N> &a, \
const fixed_size_simd<T, N> &b) \
{ \
return {private_init, internal_data(a) op internal_data(b)}; \
} \
template <class T, int N, \
class = typename std::enable_if<!fixed_size_simd<T, N>::is_atomic>::type, \
class = T> \
fixed_size_simd<T, N> operator op(const fixed_size_simd<T, N> &a, \
const fixed_size_simd<T, N> &b) \
Vc_INTRINSIC fixed_size_simd<T, N> operator op(const fixed_size_simd<T, N> &a, \
const fixed_size_simd<T, N> &b) \
{ \
return {internal_data0(a) op internal_data0(b), \
internal_data1(a) op internal_data1(b)}; \
Expand All @@ -1607,16 +1607,16 @@ Vc_ALL_SHIFTS(Vc_FIXED_OP);
#define Vc_FIXED_OP(op) \
template <class T, int N, \
class = typename std::enable_if<fixed_size_simd<T, N>::is_atomic>::type> \
fixed_size_simd_mask<T, N> operator op(const fixed_size_simd<T, N> &a, \
const fixed_size_simd<T, N> &b) \
Vc_INTRINSIC fixed_size_simd_mask<T, N> operator op(const fixed_size_simd<T, N> &a, \
const fixed_size_simd<T, N> &b) \
{ \
return {private_init, internal_data(a) op internal_data(b)}; \
} \
template <class T, int N, \
class = typename std::enable_if<!fixed_size_simd<T, N>::is_atomic>::type, \
class = T> \
fixed_size_simd_mask<T, N> operator op(const fixed_size_simd<T, N> &a, \
const fixed_size_simd<T, N> &b) \
Vc_INTRINSIC fixed_size_simd_mask<T, N> operator op(const fixed_size_simd<T, N> &a, \
const fixed_size_simd<T, N> &b) \
{ \
return {internal_data0(a) op internal_data0(b), \
internal_data1(a) op internal_data1(b)}; \
Expand Down

0 comments on commit 7076d4a

Please sign in to comment.