Skip to content

Commit

Permalink
Fix build issues with gcc compiler as well
Browse files Browse the repository at this point in the history
  • Loading branch information
ayappanec committed Oct 23, 2024
1 parent b6ec73e commit 020cce1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/power/gemm_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,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 @@ -66,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

0 comments on commit 020cce1

Please sign in to comment.