浏览代码

Vorbis: Make sure SSE float-to-int conversion codepath is not taken when compiling for Windows ARM64.

Miku AuahDark 5 年之前
父节点
当前提交
86071a8a44
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      libs/libvorbis-1.3.5/lib/os.h

+ 1 - 1
libs/libvorbis-1.3.5/lib/os.h

@@ -148,7 +148,7 @@ static __inline void vorbis_fpu_restore(vorbis_fpu_control fpu){
 
 
 /* Optimized code path for x86_64 builds. Uses SSE2 intrinsics. This can be
 /* Optimized code path for x86_64 builds. Uses SSE2 intrinsics. This can be
    done safely because all x86_64 CPUs supports SSE2. */
    done safely because all x86_64 CPUs supports SSE2. */
-#if (defined(_MSC_VER) && defined(_WIN64)) || (defined(__GNUC__) && defined (__x86_64__))
+#if (defined(_MSC_VER) && defined(_M_AMD64)) || (defined(__GNUC__) && defined (__x86_64__))
 #  define VORBIS_FPU_CONTROL
 #  define VORBIS_FPU_CONTROL
 
 
 typedef ogg_int16_t vorbis_fpu_control;
 typedef ogg_int16_t vorbis_fpu_control;