Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
1a1a98f6
Commit
1a1a98f6
authored
10 years ago
by
Michael Niedermayer
Browse files
Options
Downloads
Patches
Plain Diff
avutil/ppc/util_altivec: make src pointers const, fix warnings
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
79e02559
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavutil/ppc/util_altivec.h
+2
-2
2 additions, 2 deletions
libavutil/ppc/util_altivec.h
with
2 additions
and
2 deletions
libavutil/ppc/util_altivec.h
+
2
−
2
View file @
1a1a98f6
...
@@ -96,7 +96,7 @@ do { \
...
@@ -96,7 +96,7 @@ do { \
/** @brief loads unaligned vector @a *src with offset @a offset
/** @brief loads unaligned vector @a *src with offset @a offset
and returns it */
and returns it */
#if HAVE_BIGENDIAN
#if HAVE_BIGENDIAN
static
inline
vector
unsigned
char
unaligned_load
(
int
offset
,
uint8_t
*
src
)
static
inline
vector
unsigned
char
unaligned_load
(
int
offset
,
const
uint8_t
*
src
)
{
{
register
vector
unsigned
char
first
=
vec_ld
(
offset
,
src
);
register
vector
unsigned
char
first
=
vec_ld
(
offset
,
src
);
register
vector
unsigned
char
second
=
vec_ld
(
offset
+
15
,
src
);
register
vector
unsigned
char
second
=
vec_ld
(
offset
+
15
,
src
);
...
@@ -112,7 +112,7 @@ static inline vector unsigned char unaligned_load(int offset, uint8_t *src)
...
@@ -112,7 +112,7 @@ static inline vector unsigned char unaligned_load(int offset, uint8_t *src)
* loads vector known misalignment
* loads vector known misalignment
* @param perm_vec the align permute vector to combine the two loads from lvsl
* @param perm_vec the align permute vector to combine the two loads from lvsl
*/
*/
static
inline
vec_u8
load_with_perm_vec
(
int
offset
,
uint8_t
*
src
,
vec_u8
perm_vec
)
static
inline
vec_u8
load_with_perm_vec
(
int
offset
,
const
uint8_t
*
src
,
vec_u8
perm_vec
)
{
{
vec_u8
a
=
vec_ld
(
offset
,
src
);
vec_u8
a
=
vec_ld
(
offset
,
src
);
vec_u8
b
=
vec_ld
(
offset
+
15
,
src
);
vec_u8
b
=
vec_ld
(
offset
+
15
,
src
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment