Browse Source

Fix build issues with gcc compiler as well

tags/v0.3.29
Ayappan Perumal 11 months ago
parent
commit
020cce1068
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      kernel/power/gemm_common.c

+ 2
- 2
kernel/power/gemm_common.c View File

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


Loading…
Cancel
Save