Skip to content

Commit

Permalink
SPUThread.cpp: use FORCE_INLINE macro
Browse files Browse the repository at this point in the history
cmp_rdata and mov_rdata and directly using __attribute__((always_inline)),
but without inline and this is not allowed so replace it with FORCE_INLINE
macro.
  • Loading branch information
drizzt committed Mar 3, 2021
1 parent 8b8120c commit a322a1a
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions rpcs3/Emu/Cell/SPUThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,12 +131,7 @@ static FORCE_INLINE bool cmp_rdata_avx(const __m256i* lhs, const __m256i* rhs)
#endif
}

#ifdef _MSC_VER
__forceinline
#else
__attribute__((always_inline))
#endif
extern bool cmp_rdata(const spu_rdata_t& _lhs, const spu_rdata_t& _rhs)
extern FORCE_INLINE bool cmp_rdata(const spu_rdata_t& _lhs, const spu_rdata_t& _rhs)
{
#ifndef __AVX__
if (s_tsx_avx) [[likely]]
Expand Down Expand Up @@ -187,12 +182,7 @@ static FORCE_INLINE void mov_rdata_avx(__m256i* dst, const __m256i* src)
#endif
}

#ifdef _MSC_VER
__forceinline
#else
__attribute__((always_inline))
#endif
extern void mov_rdata(spu_rdata_t& _dst, const spu_rdata_t& _src)
extern FORCE_INLINE void mov_rdata(spu_rdata_t& _dst, const spu_rdata_t& _src)
{
#ifndef __AVX__
if (s_tsx_avx) [[likely]]
Expand Down

0 comments on commit a322a1a

Please sign in to comment.