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