Mercurial > libavcodec.hg
comparison ppc/util_altivec.h @ 7760:c4a4495715dd libavcodec
Globally rename the header inclusion guard names.
Consistently apply this rule: the guard name is obtained from the
filename by stripping the leading "lib", converting '/' and '.' to
'_' and uppercasing the resulting name. Guard names in the root
directory have to be prefixed by "FFMPEG_".
author | stefano |
---|---|
date | Sun, 31 Aug 2008 07:39:47 +0000 |
parents | 266d4949aa15 |
children | 7a463923ecd1 |
comparison
equal
deleted
inserted
replaced
7759:892ca48b7d76 | 7760:c4a4495715dd |
---|---|
19 /** | 19 /** |
20 * @file util_altivec.h | 20 * @file util_altivec.h |
21 * Contains misc utility macros and inline functions | 21 * Contains misc utility macros and inline functions |
22 */ | 22 */ |
23 | 23 |
24 #ifndef FFMPEG_UTIL_ALTIVEC_H | 24 #ifndef AVCODEC_PPC_UTIL_ALTIVEC_H |
25 #define FFMPEG_UTIL_ALTIVEC_H | 25 #define AVCODEC_PPC_UTIL_ALTIVEC_H |
26 | 26 |
27 #include <stdint.h> | 27 #include <stdint.h> |
28 | 28 |
29 #include "config.h" | 29 #include "config.h" |
30 | 30 |
100 register vector unsigned char second = vec_ld(offset+15, src); | 100 register vector unsigned char second = vec_ld(offset+15, src); |
101 register vector unsigned char mask = vec_lvsl(offset, src); | 101 register vector unsigned char mask = vec_lvsl(offset, src); |
102 return vec_perm(first, second, mask); | 102 return vec_perm(first, second, mask); |
103 } | 103 } |
104 | 104 |
105 #endif /* FFMPEG_UTIL_ALTIVEC_H */ | 105 #endif /* AVCODEC_PPC_UTIL_ALTIVEC_H */ |