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 2828#define USE_VECTOR_PAIRS
2929#endif
3030
31+ #ifdef _AIX
32+ #include <stdbool.h>
33+ typedef __vector unsigned short vec_bf16 ;
34+ #else
3135typedef __vector IFLOAT vec_bf16 ;
36+ #endif
3237typedef __vector FLOAT vec_f32 ;
3338typedef __vector unsigned char vec_uc8 ;
3439
@@ -44,7 +49,7 @@ FORCEINLINE void vec_load_pair(vec_f32 *dst, vec_f32 *src)
4449#ifdef __clang__
4550 vy0p = __builtin_vsx_lxvp (0L , (const __vector_pair * )(src ));
4651#else
47- vy0p = * (__vector_pair * )(src );
52+ vy0p = * (__vector_pair * )(( void * ) src );
4853#endif
4954 __builtin_vsx_disassemble_pair ((void * )(dst ), & vy0p );
5055#else
@@ -61,7 +66,7 @@ FORCEINLINE void vec_store_pair(vec_f32 *dst, vec_f32 *src)
6166#ifdef __clang__
6267 __builtin_vsx_stxvp (vy0p , 0L , (__vector_pair * )(dst ));
6368#else
64- * (__vector_pair * )(dst ) = vy0p ;
69+ * (__vector_pair * )(( void * ) dst ) = vy0p ;
6570#endif
6671#else
6772 dst [0 ] = src [0 ];
You can’t perform that action at this time.
0 commit comments