mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-10 08:51:19 +12:00
[ih264] per-function target attribute on clang and GCC (#328)
This commit is contained in:
parent
8a0fe21589
commit
4519a59d74
17 changed files with 179 additions and 4 deletions
|
@ -60,6 +60,12 @@
|
|||
|
||||
#include "ih264d_structs.h"
|
||||
|
||||
#ifdef __GNUC__
|
||||
#define ATTRIBUTE_SSE42 __attribute__((target("sse4.2")))
|
||||
#else
|
||||
#define ATTRIBUTE_SSE42
|
||||
#endif
|
||||
|
||||
|
||||
/**
|
||||
*******************************************************************************
|
||||
|
@ -79,6 +85,7 @@
|
|||
*
|
||||
*******************************************************************************
|
||||
*/
|
||||
ATTRIBUTE_SSE42
|
||||
void ih264d_init_function_ptr_sse42(dec_struct_t *ps_codec)
|
||||
{
|
||||
ps_codec->pf_default_weighted_pred_luma = ih264_default_weighted_pred_luma_sse42;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue