Mercurial > mplayer.hg
changeset 12143:da228f2485d9
SSE support under OpenBSD, patch by Bjorn Sandell
author | alex |
---|---|
date | Tue, 06 Apr 2004 17:08:02 +0000 |
parents | 73261fb64be5 |
children | 1226e0cbb04b |
files | cpudetect.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/cpudetect.c Tue Apr 06 16:15:57 2004 +0000 +++ b/cpudetect.c Tue Apr 06 17:08:02 2004 +0000 @@ -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;