File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 28
28
#define USE_VECTOR_PAIRS
29
29
#endif
30
30
31
+ #ifdef _AIX
32
+ #include <stdbool.h>
33
+ typedef __vector unsigned short vec_bf16 ;
34
+ #else
31
35
typedef __vector IFLOAT vec_bf16 ;
36
+ #endif
32
37
typedef __vector FLOAT vec_f32 ;
33
38
typedef __vector unsigned char vec_uc8 ;
34
39
@@ -44,7 +49,7 @@ FORCEINLINE void vec_load_pair(vec_f32 *dst, vec_f32 *src)
44
49
#ifdef __clang__
45
50
vy0p = __builtin_vsx_lxvp (0L , (const __vector_pair * )(src ));
46
51
#else
47
- vy0p = * (__vector_pair * )(src );
52
+ vy0p = * (__vector_pair * )(( void * ) src );
48
53
#endif
49
54
__builtin_vsx_disassemble_pair ((void * )(dst ), & vy0p );
50
55
#else
@@ -61,7 +66,7 @@ FORCEINLINE void vec_store_pair(vec_f32 *dst, vec_f32 *src)
61
66
#ifdef __clang__
62
67
__builtin_vsx_stxvp (vy0p , 0L , (__vector_pair * )(dst ));
63
68
#else
64
- * (__vector_pair * )(dst ) = vy0p ;
69
+ * (__vector_pair * )(( void * ) dst ) = vy0p ;
65
70
#endif
66
71
#else
67
72
dst [0 ] = src [0 ];
You can’t perform that action at this time.
0 commit comments