Mercurial > mplayer.hg
comparison liba52/liba52_changes.diff @ 25327:a7b716b53e9f
Replace SYS_DARWIN conditional directive around gcc macros by __APPLE_CC__.
The macro definition depends on compiler capabilities, not OS features.
| author | diego |
|---|---|
| date | Tue, 11 Dec 2007 20:07:18 +0000 |
| parents | 49a433e2e78f |
| children | 6f0309e575e0 |
comparison
equal
deleted
inserted
replaced
| 25326:054ec3ddc5e1 | 25327:a7b716b53e9f |
|---|---|
| 1561 +#define WORD_s0 0x10,0x11,0x12,0x13 | 1561 +#define WORD_s0 0x10,0x11,0x12,0x13 |
| 1562 +#define WORD_s1 0x14,0x15,0x16,0x17 | 1562 +#define WORD_s1 0x14,0x15,0x16,0x17 |
| 1563 +#define WORD_s2 0x18,0x19,0x1a,0x1b | 1563 +#define WORD_s2 0x18,0x19,0x1a,0x1b |
| 1564 +#define WORD_s3 0x1c,0x1d,0x1e,0x1f | 1564 +#define WORD_s3 0x1c,0x1d,0x1e,0x1f |
| 1565 + | 1565 + |
| 1566 +#ifdef SYS_DARWIN | 1566 +#ifdef __APPLE_CC__ |
| 1567 +#define vcprm(a,b,c,d) (const vector unsigned char)(WORD_ ## a, WORD_ ## b, WORD_ ## c, WORD_ ## d) | 1567 +#define vcprm(a,b,c,d) (const vector unsigned char)(WORD_ ## a, WORD_ ## b, WORD_ ## c, WORD_ ## d) |
| 1568 +#else | 1568 +#else |
| 1569 +#define vcprm(a,b,c,d) (const vector unsigned char){WORD_ ## a, WORD_ ## b, WORD_ ## c, WORD_ ## d} | 1569 +#define vcprm(a,b,c,d) (const vector unsigned char){WORD_ ## a, WORD_ ## b, WORD_ ## c, WORD_ ## d} |
| 1570 +#endif | 1570 +#endif |
| 1571 + | 1571 + |
| 1577 +// used to build inverse/identity vectors (vcii) | 1577 +// used to build inverse/identity vectors (vcii) |
| 1578 +// n is _n_egative, p is _p_ositive | 1578 +// n is _n_egative, p is _p_ositive |
| 1579 +#define FLOAT_n -1. | 1579 +#define FLOAT_n -1. |
| 1580 +#define FLOAT_p 1. | 1580 +#define FLOAT_p 1. |
| 1581 + | 1581 + |
| 1582 +#ifdef SYS_DARWIN | 1582 +#ifdef __APPLE_CC__ |
| 1583 +#define vcii(a,b,c,d) (const vector float)(FLOAT_ ## a, FLOAT_ ## b, FLOAT_ ## c, FLOAT_ ## d) | 1583 +#define vcii(a,b,c,d) (const vector float)(FLOAT_ ## a, FLOAT_ ## b, FLOAT_ ## c, FLOAT_ ## d) |
| 1584 +#else | 1584 +#else |
| 1585 +#define vcii(a,b,c,d) (const vector float){FLOAT_ ## a, FLOAT_ ## b, FLOAT_ ## c, FLOAT_ ## d} | 1585 +#define vcii(a,b,c,d) (const vector float){FLOAT_ ## a, FLOAT_ ## b, FLOAT_ ## c, FLOAT_ ## d} |
| 1586 +#endif | 1586 +#endif |
| 1587 + | 1587 + |
| 1588 +#ifdef SYS_DARWIN | 1588 +#ifdef __APPLE_CC__ |
| 1589 +#define FOUROF(a) (a) | 1589 +#define FOUROF(a) (a) |
| 1590 +#else | 1590 +#else |
| 1591 +#define FOUROF(a) {a,a,a,a} | 1591 +#define FOUROF(a) {a,a,a,a} |
| 1592 +#endif | 1592 +#endif |
| 1593 + | 1593 + |
