Fix build issues with gcc compiler as well

This commit is contained in:
Ayappan Perumal 2024-10-23 04:24:06 -05:00
parent b6ec73e77c
commit 020cce1068
1 changed files with 2 additions and 2 deletions

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];