~ubuntu-branches/ubuntu/precise/mplayer2/precise-proposed

« back to all changes in this revision

Viewing changes to cpudetect.c

  • Committer: Package Import Robot
  • Author(s): Reinhard Tartler
  • Date: 2012-01-12 22:59:30 UTC
  • mfrom: (5.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20120112225930-jsg10o7na7nk73w5
Tags: 2.0-426-gc32b3ed-2
* Upload to unstable
* don't build-depend on libcdparanoia-dev on the hurd

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
 * team for SSE support detection and more cpu detect code.
53
53
 */
54
54
 
 
55
#if CONFIG_RUNTIME_CPUDETECT
55
56
/* I believe this code works.  However, it has only been used on a PII and PIII */
56
57
 
57
58
#if defined(__linux__) && defined(_POSIX_SOURCE) && !ARCH_X86_64
221
222
    gCpuCaps.hasSSE=0;
222
223
#endif /* __linux__ */
223
224
}
 
225
#endif
224
226
 
225
227
 
226
228
// return TRUE if cpuid supported
352
354
           gCpuCaps.has3DNowExt);
353
355
#endif
354
356
 
 
357
#if CONFIG_RUNTIME_CPUDETECT
355
358
        /* FIXME: Does SSE2 need more OS support, too? */
356
359
        if (caps->hasSSE)
357
360
            check_os_katmai_support();
361
364
//          caps->hasMMX2 = 0;
362
365
//          caps->hasMMX = 0;
363
366
 
364
 
#if !CONFIG_RUNTIME_CPUDETECT
 
367
#else
365
368
#if !HAVE_MMX
366
369
        if(caps->hasMMX) mp_msg(MSGT_CPUDETECT,MSGL_WARN,"MMX supported but disabled\n");
367
370
        caps->hasMMX=0;