]> git.pld-linux.org Git - packages/gpac.git/blob - gpac-amd64.patch
- make -j1
[packages/gpac.git] / gpac-amd64.patch
1 diff -ur gpac.orig/extra_lib/include/gecko-sdk/nspr/include/md/_linux.h gpac/extra_lib/include/gecko-sdk/nspr/include/md/_linux.h
2 --- gpac.orig/extra_lib/include/gecko-sdk/nspr/include/md/_linux.h      2005-07-18 17:51:49.000000000 +0200
3 +++ gpac/extra_lib/include/gecko-sdk/nspr/include/md/_linux.h   2006-06-12 19:10:17.766003500 +0200
4 @@ -49,6 +49,8 @@
5  #define _PR_SI_ARCHITECTURE "alpha"
6  #elif defined(__ia64__)
7  #define _PR_SI_ARCHITECTURE "ia64"
8 +#elif defined(__x86_64__)
9 +#define _PR_SI_ARCHITECTURE "x86-64"
10  #elif defined(__mc68000__)
11  #define _PR_SI_ARCHITECTURE "m68k"
12  #elif defined(__sparc__)
13 @@ -109,6 +111,19 @@
14  #define _MD_ATOMIC_SET                _PR_ia64_AtomicSet
15  #endif
16  
17 +#if defined(__x86_64__)
18 +#define _PR_HAVE_ATOMIC_OPS
19 +#define _MD_INIT_ATOMIC()
20 +extern PRInt32 _PR_x86_64_AtomicIncrement(PRInt32 *val);
21 +#define _MD_ATOMIC_INCREMENT          _PR_x86_64_AtomicIncrement
22 +extern PRInt32 _PR_x86_64_AtomicDecrement(PRInt32 *val);
23 +#define _MD_ATOMIC_DECREMENT          _PR_x86_64_AtomicDecrement
24 +extern PRInt32 _PR_x86_64_AtomicAdd(PRInt32 *ptr, PRInt32 val);
25 +#define _MD_ATOMIC_ADD                _PR_x86_64_AtomicAdd
26 +extern PRInt32 _PR_x86_64_AtomicSet(PRInt32 *val, PRInt32 newval);
27 +#define _MD_ATOMIC_SET                _PR_x86_64_AtomicSet
28 +#endif
29 +
30  #define USE_SETJMP
31  #if defined(__GLIBC__) && __GLIBC__ >= 2
32  #define _PR_POLL_AVAILABLE
33 diff -ur gpac.orig/extra_lib/include/gecko-sdk/nspr/include/prcpucfg.h gpac/extra_lib/include/gecko-sdk/nspr/include/prcpucfg.h
34 --- gpac.orig/extra_lib/include/gecko-sdk/nspr/include/prcpucfg.h       2005-07-18 17:51:52.000000000 +0200
35 +++ gpac/extra_lib/include/gecko-sdk/nspr/include/prcpucfg.h    2006-06-12 19:09:24.586680000 +0200
36 @@ -347,6 +347,52 @@
37  #define PR_BYTES_PER_WORD_LOG2  3
38  #define PR_BYTES_PER_DWORD_LOG2 3
39  
40 +#elif defined(__x86_64__)
41 +
42 +#define IS_LITTLE_ENDIAN 1
43 +#undef  IS_BIG_ENDIAN
44 +#define IS_64
45 +
46 +#define PR_BYTES_PER_BYTE   1
47 +#define PR_BYTES_PER_SHORT  2
48 +#define PR_BYTES_PER_INT    4
49 +#define PR_BYTES_PER_INT64  8
50 +#define PR_BYTES_PER_LONG   8
51 +#define PR_BYTES_PER_FLOAT  4
52 +#define PR_BYTES_PER_DOUBLE 8
53 +#define PR_BYTES_PER_WORD   8
54 +#define PR_BYTES_PER_DWORD  8
55 +
56 +#define PR_BITS_PER_BYTE    8
57 +#define PR_BITS_PER_SHORT   16
58 +#define PR_BITS_PER_INT     32
59 +#define PR_BITS_PER_INT64   64
60 +#define PR_BITS_PER_LONG    64
61 +#define PR_BITS_PER_FLOAT   32
62 +#define PR_BITS_PER_DOUBLE  64
63 +#define PR_BITS_PER_WORD    64
64 +
65 +#define PR_BITS_PER_BYTE_LOG2   3
66 +#define PR_BITS_PER_SHORT_LOG2  4
67 +#define PR_BITS_PER_INT_LOG2    5
68 +#define PR_BITS_PER_INT64_LOG2  6
69 +#define PR_BITS_PER_LONG_LOG2   6
70 +#define PR_BITS_PER_FLOAT_LOG2  5
71 +#define PR_BITS_PER_DOUBLE_LOG2 6
72 +#define PR_BITS_PER_WORD_LOG2   6
73 +
74 +#define PR_ALIGN_OF_SHORT   2
75 +#define PR_ALIGN_OF_INT     4
76 +#define PR_ALIGN_OF_LONG    8
77 +#define PR_ALIGN_OF_INT64   8
78 +#define PR_ALIGN_OF_FLOAT   4
79 +#define PR_ALIGN_OF_DOUBLE  8
80 +#define PR_ALIGN_OF_POINTER 8
81 +#define PR_ALIGN_OF_WORD    8
82 +
83 +#define PR_BYTES_PER_WORD_LOG2  3
84 +#define PR_BYTES_PER_DWORD_LOG2 3
85 +
86  #elif defined(__mc68000__)
87  
88  #undef  IS_LITTLE_ENDIAN
This page took 0.042919 seconds and 3 git commands to generate.