Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions kernel/power/gemm_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@
#define USE_VECTOR_PAIRS
#endif

#ifdef _AIX
#include<stdbool.h>
typedef __vector unsigned short vec_bf16;
#else
typedef __vector IFLOAT vec_bf16;
#endif
typedef __vector FLOAT vec_f32;
typedef __vector unsigned char vec_uc8;

Expand All @@ -44,7 +49,7 @@ FORCEINLINE void vec_load_pair(vec_f32 *dst, vec_f32 *src)
#ifdef __clang__
vy0p = __builtin_vsx_lxvp(0L, (const __vector_pair *)(src));
#else
vy0p = *(__vector_pair *)(src);
vy0p = *(__vector_pair *)((void *)src);
#endif
__builtin_vsx_disassemble_pair((void *)(dst), &vy0p);
#else
Expand All @@ -61,7 +66,7 @@ FORCEINLINE void vec_store_pair(vec_f32 *dst, vec_f32 *src)
#ifdef __clang__
__builtin_vsx_stxvp(vy0p, 0L, (__vector_pair *)(dst));
#else
*(__vector_pair *)(dst) = vy0p;
*(__vector_pair *)((void *)dst) = vy0p;
#endif
#else
dst[0] = src[0];
Expand Down
Loading