Mercurial > libavcodec.hg
comparison ppc/dsputil_altivec.h @ 5585:f644e7c90380 libavcodec
Remove HAVE_ALTIVEC preprocessor directives that are only compiled
when AltiVec is enabled anyway.
author | diego |
---|---|
date | Fri, 24 Aug 2007 23:01:50 +0000 |
parents | 2089dcb2b18a |
children | 09f99af1db40 |
comparison
equal
deleted
inserted
replaced
5584:e831a81fb25e | 5585:f644e7c90380 |
---|---|
22 | 22 |
23 #ifndef DSPUTIL_ALTIVEC_H | 23 #ifndef DSPUTIL_ALTIVEC_H |
24 #define DSPUTIL_ALTIVEC_H | 24 #define DSPUTIL_ALTIVEC_H |
25 | 25 |
26 #include "dsputil_ppc.h" | 26 #include "dsputil_ppc.h" |
27 | |
28 #ifdef HAVE_ALTIVEC | |
29 | 27 |
30 extern int has_altivec(void); | 28 extern int has_altivec(void); |
31 | 29 |
32 void put_pixels16_altivec(uint8_t *block, const uint8_t *pixels, int line_size, int h); | 30 void put_pixels16_altivec(uint8_t *block, const uint8_t *pixels, int line_size, int h); |
33 | 31 |
110 register vector unsigned char second = vec_ld(offset+15, src); | 108 register vector unsigned char second = vec_ld(offset+15, src); |
111 register vector unsigned char mask = vec_lvsl(offset, src); | 109 register vector unsigned char mask = vec_lvsl(offset, src); |
112 return vec_perm(first, second, mask); | 110 return vec_perm(first, second, mask); |
113 } | 111 } |
114 | 112 |
115 #endif /* HAVE_ALTIVEC */ | |
116 | |
117 #endif /* DSPUTIL_ALTIVEC_H */ | 113 #endif /* DSPUTIL_ALTIVEC_H */ |