FreeRDP
Loading...
Searching...
No Matches
rfx_sse2.h
1
20#ifndef FREERDP_LIB_CODEC_RFX_SSE2_H
21#define FREERDP_LIB_CODEC_RFX_SSE2_H
22
23#include <winpr/sysinfo.h>
24
25#include <freerdp/codec/rfx.h>
26#include <freerdp/api.h>
27
28FREERDP_LOCAL void rfx_init_sse2_int(RFX_CONTEXT* WINPR_RESTRICT context);
29
30static inline void rfx_init_sse2(RFX_CONTEXT* WINPR_RESTRICT context)
31{
32 if (!IsProcessorFeaturePresent(PF_SSE2_INSTRUCTIONS_AVAILABLE) ||
33 !IsProcessorFeaturePresent(PF_SSE3_INSTRUCTIONS_AVAILABLE))
34 return;
35
36 rfx_init_sse2_int(context);
37}
38
39#endif /* FREERDP_LIB_CODEC_RFX_SSE2_H */