pkgsrc-wip/mplayer-share/patches/patch-ae
2006-01-30 01:25:13 +00:00

23 lines
766 B
Text

$NetBSD: patch-ae,v 1.1.1.1 2006/01/30 01:25:14 lsed Exp $
--- cpudetect.c.orig 2005-11-23 17:01:42.000000000 +0100
+++ cpudetect.c 2005-11-23 17:01:11.000000000 +0100
@@ -337,6 +337,10 @@ static void check_os_katmai_support( voi
#elif defined(__NetBSD__) || defined (__OpenBSD__)
#if __NetBSD_Version__ >= 105250000 || (defined __OpenBSD__)
+#ifdef __x86_64__
+ gCpuCaps.hasSSE=1;
+ gCpuCaps.hasSSE2=1;
+#else
int has_sse, has_sse2, ret, mib[2];
size_t varlen;
@@ -365,6 +369,7 @@ static void check_os_katmai_support( voi
gCpuCaps.hasSSE2=1;
mp_msg(MSGT_CPUDETECT,MSGL_V, "yes!\n" );
}
+#endif /* x86_64 */
#else
gCpuCaps.hasSSE = 0;
mp_msg(MSGT_CPUDETECT,MSGL_WARN, "No OS support for SSE, disabling to be safe.\n" );