Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
b5aa4855
Commit
b5aa4855
authored
May 28, 2014
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc: Move vec_unaligned_load macro to util_altivec
This allows reusing it from multiple files.
parent
593886b5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
int_altivec.c
libavcodec/ppc/int_altivec.c
+1
-3
util_altivec.h
libavutil/ppc/util_altivec.h
+3
-0
No files found.
libavcodec/ppc/int_altivec.c
View file @
b5aa4855
...
@@ -30,6 +30,7 @@
...
@@ -30,6 +30,7 @@
#include "libavutil/attributes.h"
#include "libavutil/attributes.h"
#include "libavutil/ppc/types_altivec.h"
#include "libavutil/ppc/types_altivec.h"
#include "libavutil/ppc/util_altivec.h"
#include "libavcodec/dsputil.h"
#include "libavcodec/dsputil.h"
#include "dsputil_altivec.h"
#include "dsputil_altivec.h"
...
@@ -46,9 +47,6 @@ static int ssd_int8_vs_int16_altivec(const int8_t *pix1, const int16_t *pix2,
...
@@ -46,9 +47,6 @@ static int ssd_int8_vs_int16_altivec(const int8_t *pix1, const int16_t *pix2,
// XXX lazy way, fix it later
// XXX lazy way, fix it later
#define vec_unaligned_load(b) \
vec_perm(vec_ld(0, b), vec_ld(15, b), vec_lvsl(0, b));
while
(
size16
)
{
while
(
size16
)
{
// score += (pix1[i] - pix2[i]) * (pix1[i] - pix2[i]);
// score += (pix1[i] - pix2[i]) * (pix1[i] - pix2[i]);
// load pix1 and the first batch of pix2
// load pix1 and the first batch of pix2
...
...
libavutil/ppc/util_altivec.h
View file @
b5aa4855
...
@@ -106,6 +106,9 @@ static inline vec_u8 load_with_perm_vec(int offset, uint8_t *src, vec_u8 perm_ve
...
@@ -106,6 +106,9 @@ static inline vec_u8 load_with_perm_vec(int offset, uint8_t *src, vec_u8 perm_ve
return
vec_perm
(
a
,
b
,
perm_vec
);
return
vec_perm
(
a
,
b
,
perm_vec
);
}
}
#define vec_unaligned_load(b) \
vec_perm(vec_ld(0, b), vec_ld(15, b), vec_lvsl(0, b));
#endif
/* HAVE_ALTIVEC */
#endif
/* HAVE_ALTIVEC */
#endif
/* AVUTIL_PPC_UTIL_ALTIVEC_H */
#endif
/* AVUTIL_PPC_UTIL_ALTIVEC_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment