FreeRDP
nsc_neon.c
1 
21 #include <winpr/platform.h>
22 #include <winpr/sysinfo.h>
23 #include <freerdp/config.h>
24 #include <freerdp/log.h>
25 
26 #include "../nsc_types.h"
27 #include "nsc_neon.h"
28 
29 #if defined(WITH_NEON)
30 #if defined(_M_ARM64) || defined(_M_ARM)
31 #define NEON_ENABLED
32 #endif
33 #endif
34 
35 #if defined(NEON_ENABLED)
36 #define TAG FREERDP_TAG("codec.nsc.neon")
37 #endif
38 
39 void nsc_init_neon(NSC_CONTEXT* context)
40 {
41 #if defined(NEON_ENABLED)
42  if (!IsProcessorFeaturePresent(PF_ARM_NEON_INSTRUCTIONS_AVAILABLE))
43  return;
44 
45  WLog_WARN(TAG, "TODO: Implement neon optimized version of this function");
46 #endif
47 }