[Mplayer-cvslog] CVS: main cpudetect.c,1.33,1.34

Alex Beregszaszi syncmail at mplayerhq.hu
Tue Apr 6 19:08:05 CEST 2004


CVS change done by Alex Beregszaszi

Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv4338

Modified Files:
	cpudetect.c 
Log Message:
SSE support under OpenBSD, patch by Bjorn Sandell

Index: cpudetect.c
===================================================================
RCS file: /cvsroot/mplayer/main/cpudetect.c,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- cpudetect.c	1 Apr 2004 10:19:57 -0000	1.33
+++ cpudetect.c	6 Apr 2004 17:08:02 -0000	1.34
@@ -15,7 +15,7 @@
 #include <string.h>
 #include "osdep/timer.h"
 
-#ifdef __NetBSD__
+#if defined (__NetBSD__) || defined(__OpenBSD__)
 #include <sys/param.h>
 #include <sys/sysctl.h>
 #include <machine/cpu.h>
@@ -170,7 +170,7 @@
 #endif
 
 		/* FIXME: Does SSE2 need more OS support, too? */
-#if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__CYGWIN__) || defined(__MINGW32__)
+#if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__CYGWIN__) || defined(__MINGW32__) || defined(__OpenBSD__)
 		if (caps->hasSSE)
 			check_os_katmai_support();
 		if (!caps->hasSSE)
@@ -366,8 +366,8 @@
    if (ret || !has_sse)
       gCpuCaps.hasSSE=0;
 
-#elif defined(__NetBSD__)
-#if __NetBSD_Version__ >= 105250000
+#elif defined(__NetBSD__) || defined (__OpenBSD__)
+#if __NetBSD_Version__ >= 105250000 || (defined __OpenBSD__)
    int has_sse, has_sse2, ret, mib[2];
    size_t varlen;
 




More information about the MPlayer-cvslog mailing list