search for: opus_cpu_capa

Displaying 1 result from an estimated 1 matches for "opus_cpu_capa".

2013 May 23
2
ASM runtime detection and optimizations
...+/* Original code from libtheora modified to suit to Opus */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "armcpu.h" + +#if !defined(ARM_ASM) || \ + !defined(ARMv5E_ASM) && !defined(ARMv6_ASM) && \ + !defined(ARM_HAVE_NEON) +opus_uint32 opus_cpu_capa(void) +{ + return 0; +} +#elif defined(_MSC_VER) +/*For GetExceptionCode() and EXCEPTION_ILLEGAL_INSTRUCTION.*/ +# define WIN32_LEAN_AND_MEAN +# define WIN32_EXTRA_LEAN +# include <windows.h> + +opus_uint32 opus_cpu_capa(void){ + opus_uint32 flags; + flags=0; + /*MSVC has no inline __asm...