openbsd-ports/x11/mplayer/patches/patch-cpudetect_c
biorn 1d0de42f06 - Make amd64 use MMX and friends. Tested by niallo and naddy.
- Avoid picking up libdv and libsmb

Looks fine, naddy@
2005-04-01 06:28:57 +00:00

16 lines
447 B
Plaintext

$OpenBSD: patch-cpudetect_c,v 1.2 2005/04/01 06:28:58 biorn Exp $
--- cpudetect.c.orig Thu Oct 21 13:55:19 2004
+++ cpudetect.c Mon Jan 10 19:47:32 2005
@@ -320,7 +322,10 @@ LONG CALLBACK win32_sig_handler_sse(EXCE
*/
static void check_os_katmai_support( void )
{
-#if defined(__FreeBSD__)
+#ifdef ARCH_X86_64
+ gCpuCaps.hasSSE=1;
+ gCpuCaps.hasSSE2=1;
+#elif defined(__FreeBSD__)
int has_sse=0, ret;
size_t len=sizeof(has_sse);