~ubuntu-branches/debian/experimental/vlc/experimental

« back to all changes in this revision

Viewing changes to src/misc/cpu.c

  • Committer: Bazaar Package Importer
  • Author(s): Benjamin Drung, Christophe Mutricy, Benjamin Drung
  • Date: 2010-08-19 22:27:45 UTC
  • mfrom: (20.1.2 sid)
  • Revision ID: james.westby@ubuntu.com-20100819222745-u7f679ldhi323o7v
Tags: 1.1.3-2
[ Christophe Mutricy ]
* Depends on xulrunner-dev >= 1.9.2
* Activate VA-API (Closes: #587792, LP: #539406)

[ Benjamin Drung ]
* Switch to dh7.
* Move libavcodec plugin from vlc-nox to vlc.
* Add Xb-Npp header to mozilla-plugin-vlc package. (Not doing anything
  on Debian at the moment, see #484010)
* Add apport hook to include more VLC dependencies in bug reports and
  install it on Ubuntu.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * cpu.c: CPU detection code
3
3
 *****************************************************************************
4
4
 * Copyright (C) 1998-2004 the VideoLAN team
5
 
 * $Id: 3b0d278999938d58f9901aa9a9afba9181d3140c $
 
5
 * $Id: 693ae25694c13efa657386b34441572170048c49 $
6
6
 *
7
7
 * Authors: Samuel Hocevar <sam@zoy.org>
8
8
 *          Christophe Massiot <massiot@via.ecp.fr>
48
48
#include <sys/sysctl.h>
49
49
#endif
50
50
 
 
51
#if defined(__OpenBSD__) && defined(__powerpc__)
 
52
#include <sys/param.h>
 
53
#include <sys/sysctl.h>
 
54
#include <machine/cpu.h>
 
55
#endif
 
56
 
51
57
#if defined( __i386__ ) || defined( __x86_64__ ) || defined( __powerpc__ ) \
52
58
 || defined( __ppc__ ) || defined( __ppc64__ ) || defined( __powerpc64__ )
53
59
# ifndef WIN32
258
264
#elif defined( __powerpc__ ) || defined( __ppc__ ) || defined( __powerpc64__ ) \
259
265
    || defined( __ppc64__ )
260
266
 
261
 
#   if defined(__APPLE__)
 
267
#   if defined(__APPLE__) || defined(__OpenBSD__)
 
268
#   if defined(__OpenBSD__)
 
269
    int selectors[2] = { CTL_MACHDEP, CPU_ALTIVEC };
 
270
#   else
262
271
    int selectors[2] = { CTL_HW, HW_VECTORUNIT };
 
272
#   endif
263
273
    int i_has_altivec = 0;
264
274
    size_t i_length = sizeof( i_has_altivec );
265
275
    int i_error = sysctl( selectors, 2, &i_has_altivec, &i_length, NULL, 0);