~ubuntu-branches/ubuntu/maverick/pygame/maverick

« back to all changes in this revision

Viewing changes to src/scale_mmx.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2010-01-14 17:02:11 UTC
  • mfrom: (1.3.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20100114170211-21eop2ja7mr9vdcr
Tags: 1.9.1release-0ubuntu1
* New upstream version (lp: #433304)
* debian/control:
  - build-depends on libportmidi-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
  pygame - Python Game Library
 
3
  Copyright (C) 2000-2001  Pete Shinners
 
4
  Copyright (C) 2007  Rene Dudfield, Richard Goedeken 
 
5
 
 
6
  This library is free software; you can redistribute it and/or
 
7
  modify it under the terms of the GNU Library General Public
 
8
  License as published by the Free Software Foundation; either
 
9
  version 2 of the License, or (at your option) any later version.
 
10
 
 
11
  This library is distributed in the hope that it will be useful,
 
12
  but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
14
  Library General Public License for more details.
 
15
 
 
16
  You should have received a copy of the GNU Library General Public
 
17
  License along with this library; if not, write to the Free
 
18
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
19
 
 
20
  Pete Shinners
 
21
  pete@shinners.org
 
22
*/
 
23
 
 
24
/* Pentium MMX/SSE smoothscale routines
 
25
 * These are only compiled with GCC.
 
26
 */
 
27
#if defined(__GNUC__)
 
28
/* Choose between the 32 bit and 64 bit versions.
 
29
 * Including source code like this may be frowned upon by some,
 
30
 * but the alternative is ungainly conditionally compiled code.
 
31
 */
 
32
#   if defined(__x86_64__)
 
33
#       include "scale_mmx64.c"
 
34
#   elif defined(__i386__)
 
35
#       include "scale_mmx32.c"
 
36
#   endif
 
37
#endif