[MPlayer-cvslog] r36299 - trunk/cpudetect.c

reimar subversion at mplayerhq.hu
Tue Jun 4 22:31:32 CEST 2013


Author: reimar
Date: Tue Jun  4 22:31:32 2013
New Revision: 36299

Log:
Remove unnecessary condition.

We already assume that we have sigaction available
on Linux, e.g. in the cache code.

Might fix Bugzilla bug #2141.

Modified:
   trunk/cpudetect.c

Modified: trunk/cpudetect.c
==============================================================================
--- trunk/cpudetect.c	Mon Jun  3 19:38:06 2013	(r36298)
+++ trunk/cpudetect.c	Tue Jun  4 22:31:32 2013	(r36299)
@@ -177,7 +177,6 @@ static void check_os_katmai_support( voi
         mp_msg(MSGT_CPUDETECT,MSGL_V, gCpuCaps.hasSSE ? "yes.\n" : "no!\n" );
     }
 #elif defined(__linux__)
-#if defined(_POSIX_SOURCE)
     struct sigaction saved_sigill;
 
     /* Save the original signal handlers.
@@ -210,13 +209,6 @@ static void check_os_katmai_support( voi
      */
     mp_msg(MSGT_CPUDETECT,MSGL_V, "Tests of OS support for SSE %s\n", gCpuCaps.hasSSE ? "passed." : "failed!" );
 #else
-    /* We can't use POSIX signal handling to test the availability of
-     * SSE, so we disable it by default.
-     */
-    mp_msg(MSGT_CPUDETECT,MSGL_WARN, "Cannot test OS support for SSE, disabling to be safe.\n" );
-    gCpuCaps.hasSSE=0;
-#endif /* _POSIX_SOURCE */
-#else
     /* Do nothing on other platforms for now.
      */
     mp_msg(MSGT_CPUDETECT,MSGL_WARN, "Cannot test OS support for SSE, leaving disabled.\n" );


More information about the MPlayer-cvslog mailing list