~pygame/pygame/trunk

« back to all changes in this revision

Viewing changes to src/scale_mmx.c

  • Committer: pygame
  • Date: 2017-01-10 00:31:42 UTC
  • Revision ID: git-v1:2eea4f299a2e791f884608d7ed601558634af73c
commit 1639c41a8cb3433046882ede92c80ce69d59016b
Author: Thomas Kluyver <takowl@gmail.com>
Date:   Sun Jan 8 18:46:46 2017 +0000

    Build newer versions of libogg and libvorbis into Linux base images

    Closes #317
    Closes #323

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
 
38
 
 
39
#if defined(_M_X64) && !defined(_NO_MMX_FOR_X86_64)
 
40
#include "scale_mmx64_msvc.c"
 
41
#endif