Mercurial > mplayer.hg
comparison libswscale/rgb2rgb_template.c @ 27688:49d5420c5698
Use HAVE_FAST_64BIT instead of nonstandard __WORDSIZE macro.
author | diego |
---|---|
date | Sun, 05 Oct 2008 16:47:55 +0000 |
parents | 9936b7fa9e63 |
children | 06d645ed0c9f |
comparison
equal
deleted
inserted
replaced
27687:2f1ba3093d7d | 27688:49d5420c5698 |
---|---|
26 * The C code (not assembly, MMX, ...) of this file can be used | 26 * The C code (not assembly, MMX, ...) of this file can be used |
27 * under the LGPL license. | 27 * under the LGPL license. |
28 */ | 28 */ |
29 | 29 |
30 #include <stddef.h> | 30 #include <stddef.h> |
31 #include <inttypes.h> /* for __WORDSIZE */ | |
32 | 31 |
33 #undef PREFETCH | 32 #undef PREFETCH |
34 #undef MOVNTQ | 33 #undef MOVNTQ |
35 #undef EMMS | 34 #undef EMMS |
36 #undef SFENCE | 35 #undef SFENCE |
1582 } | 1581 } |
1583 y++; | 1582 y++; |
1584 ysrc += lumStride; | 1583 ysrc += lumStride; |
1585 dst += dstStride; | 1584 dst += dstStride; |
1586 | 1585 |
1587 #elif __WORDSIZE >= 64 | 1586 #elif HAVE_FAST_64BIT |
1588 int i; | 1587 int i; |
1589 uint64_t *ldst = (uint64_t *) dst; | 1588 uint64_t *ldst = (uint64_t *) dst; |
1590 const uint8_t *yc = ysrc, *uc = usrc, *vc = vsrc; | 1589 const uint8_t *yc = ysrc, *uc = usrc, *vc = vsrc; |
1591 for (i = 0; i < chromWidth; i += 2){ | 1590 for (i = 0; i < chromWidth; i += 2){ |
1592 uint64_t k, l; | 1591 uint64_t k, l; |
1688 : "%"REG_a | 1687 : "%"REG_a |
1689 ); | 1688 ); |
1690 #else | 1689 #else |
1691 //FIXME adapt the Alpha ASM code from yv12->yuy2 | 1690 //FIXME adapt the Alpha ASM code from yv12->yuy2 |
1692 | 1691 |
1693 #if __WORDSIZE >= 64 | 1692 #if HAVE_FAST_64BIT |
1694 int i; | 1693 int i; |
1695 uint64_t *ldst = (uint64_t *) dst; | 1694 uint64_t *ldst = (uint64_t *) dst; |
1696 const uint8_t *yc = ysrc, *uc = usrc, *vc = vsrc; | 1695 const uint8_t *yc = ysrc, *uc = usrc, *vc = vsrc; |
1697 for (i = 0; i < chromWidth; i += 2){ | 1696 for (i = 0; i < chromWidth; i += 2){ |
1698 uint64_t k, l; | 1697 uint64_t k, l; |