Skip to content

Commit 2825832

Browse files
WIP
1 parent ca1fd74 commit 2825832

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

include/xsimd/types/xsimd_altivec_register.hpp

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,22 @@ namespace xsimd
3939
namespace types
4040
{
4141

42-
#define XSIMD_DECLARE_SIMD_BOOL_ALTIVEC_REGISTER(T, Tb) \
43-
template <> \
44-
struct get_bool_simd_register<T, altivec> \
45-
{ \
46-
using type = __vector __bool Tb; \
47-
}; \
42+
#define XSIMD_DECLARE_SIMD_BOOL_ALTIVEC_REGISTER(T, Tb) \
43+
template <> \
44+
struct get_bool_simd_register<T, altivec> \
45+
{ \
46+
struct type \
47+
{ \
48+
using register_type = __vector __bool Tb; \
49+
register_type data; \
50+
type() = default; \
51+
type(register_type r) \
52+
: data(r) \
53+
{ \
54+
} \
55+
operator register_type() const noexcept { return data; } \
56+
}; \
57+
}; \
4858
XSIMD_DECLARE_SIMD_REGISTER(T, altivec, __vector T)
4959

5060
XSIMD_DECLARE_SIMD_BOOL_ALTIVEC_REGISTER(signed char, char);

0 commit comments

Comments
 (0)