~ubuntu-branches/ubuntu/feisty/kdetv/feisty

« back to all changes in this revision

Viewing changes to kdetv/libkdetv/kdetvvideo/x86-64_macros.inc

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2005-09-17 23:25:16 UTC
  • Revision ID: james.westby@ubuntu.com-20050917232516-9wdsn3ckagbqieh8
Tags: upstream-0.8.8
ImportĀ upstreamĀ versionĀ 0.8.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
                           KdetvDScalerFilter_x86-64.inc
 
3
                           -----------------------------
 
4
    begin                : Thu Sep 26 2004
 
5
    copyright            : (C) 2004 by Dirk Ziegelmeier
 
6
    email                : dziegel@gmx.de
 
7
 ***************************************************************************/
 
8
 
 
9
/*
 
10
 * This library is free software; you can redistribute it and/or
 
11
 * modify it under the terms of the GNU Library General Public
 
12
 * License as published by the Free Software Foundation; either
 
13
 * version 2 of the License, or (at your option) any later version.
 
14
 *
 
15
 * This library is distributed in the hope that it will be useful,
 
16
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
17
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
18
 * Library General Public License for more details.
 
19
 *
 
20
 * You should have received a copy of the GNU Library General Public License
 
21
 * along with this library; see the file COPYING.LIB.  If not, write to
 
22
 * the Free Software Foundation, Inc., 51 Franklin Steet, Fifth Floor,
 
23
 * Boston, MA 02110-1301, USA.
 
24
 */
 
25
 
 
26
/*
 
27
 * This file is copied from TVTIME's sources.
 
28
 * Original author: Achim Schneider <batchall@mordor.ch>
 
29
 */
 
30
 
 
31
#ifdef HAVE_CONFIG_H
 
32
#include "config.h"
 
33
#endif
 
34
 
 
35
#ifndef XAX
 
36
 
 
37
#if defined (ARCH_386)
 
38
 
 
39
#define XAX   "eax"
 
40
#define XBX   "ebx"
 
41
#define XCX   "ecx"
 
42
#define XDX   "edx"
 
43
#define XSI   "esi"
 
44
#define XDI   "edi"
 
45
#define XSP   "esp"
 
46
#define MOVX  "movl"
 
47
#define LEAX  "leal"
 
48
#define DECX  "decl"
 
49
#define PUSHX "pushl"
 
50
#define POPX  "popl"
 
51
#define CMPX  "cmpl"
 
52
#define ADDX  "addl"
 
53
#define SHLX  "shll"
 
54
#define SHRX  "shrl"
 
55
#define SUBX  "subl"
 
56
 
 
57
#elif defined (ARCH_X86_64)
 
58
 
 
59
#define XAX   "rax"
 
60
#define XBX   "rbx"
 
61
#define XCX   "rcx"
 
62
#define XDX   "rdx"
 
63
#define XSI   "rsi"
 
64
#define XDI   "rdi"
 
65
#define XSP   "rsp"
 
66
#define MOVX  "movq"
 
67
#define LEAX  "leaq"
 
68
#define DECX  "decq"
 
69
#define PUSHX "pushq"
 
70
#define POPX  "popq"
 
71
#define CMPX  "cmpq"
 
72
#define ADDX  "addq"
 
73
#define SHLX  "shlq"
 
74
#define SHRX  "shrq"
 
75
#define SUBX  "subq"
 
76
 
 
77
#else
 
78
#error Undefined architecture. Define either ARCH_X86 or ARCH_X86_64.
 
79
#endif
 
80
 
 
81
#endif