~ubuntu-branches/ubuntu/hoary/kdemultimedia/hoary

« back to all changes in this revision

Viewing changes to mpeglib/lib/util/mmxflags_asm.S

  • Committer: Bazaar Package Importer
  • Author(s): Martin Schulze
  • Date: 2003-01-22 15:00:51 UTC
  • Revision ID: james.westby@ubuntu.com-20030122150051-uihwkdoxf15mi1tn
Tags: upstream-2.2.2
ImportĀ upstreamĀ versionĀ 2.2.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
#ifdef HAVE_CONFIG_H
 
3
#include "config.h"
 
4
#endif
 
5
 
 
6
                
 
7
#ifdef INTEL
 
8
 
 
9
.data
 
10
        .align 16
 
11
        .type    flags,@object
 
12
flags: .long 0
 
13
 
 
14
.text
 
15
        .align 4
 
16
.globl cpu_flags
 
17
        .type    cpu_flags,@function
 
18
cpu_flags: 
 
19
        pushfl
 
20
        popl %eax
 
21
 
 
22
        movl %eax,%ecx
 
23
 
 
24
        xorl $0x040000,%eax
 
25
        pushl %eax
 
26
 
 
27
        popfl
 
28
        pushfl
 
29
 
 
30
        popl %eax
 
31
        xorl %ecx,%eax
 
32
        jz cpu_flags.L1   # Processor is 386
 
33
 
 
34
        pushl %ecx
 
35
        popfl
 
36
 
 
37
        movl %ecx,%eax
 
38
        xorl $0x200000,%eax
 
39
 
 
40
        pushl %eax
 
41
        popfl
 
42
        pushfl
 
43
 
 
44
        popl %eax
 
45
        xorl %ecx,%eax
 
46
        je cpu_flags.L1
 
47
 
 
48
        pusha
 
49
 
 
50
        movl $1,%eax
 
51
        cpuid
 
52
 
 
53
        movl %edx,flags
 
54
 
 
55
        popa
 
56
 
 
57
        movl flags,%eax
 
58
 
 
59
cpu_flags.L1: 
 
60
        ret
 
61
.Lfe1:
 
62
        .size    cpu_flags,.Lfe1-cpu_flags
 
63
 
 
64
#endif /* INTEL */