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
54dc9563
Commit
54dc9563
authored
May 29, 2011
by
Reimar Döffinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cast pointers to uintptr_t rather than unsigned int.
Avoids potential warnings on PPC64 systems.
parent
b8a43bc1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
swscale_altivec_template.c
libswscale/ppc/swscale_altivec_template.c
+2
-2
No files found.
libswscale/ppc/swscale_altivec_template.c
View file @
54dc9563
...
...
@@ -29,13 +29,13 @@ altivec_packIntArrayToCharArray(int *val, uint8_t* dest, int dstW)
register
int
i
;
vector
unsigned
int
altivec_vectorShiftInt19
=
vec_add
(
vec_splat_u32
(
10
),
vec_splat_u32
(
9
));
if
((
u
nsigned
in
t
)
dest
%
16
)
{
if
((
u
intptr_
t
)
dest
%
16
)
{
/* badly aligned store, we force store alignment */
/* and will handle load misalignment on val w/ vec_perm */
vector
unsigned
char
perm1
;
vector
signed
int
v1
;
for
(
i
=
0
;
(
i
<
dstW
)
&&
(((
u
nsigned
in
t
)
dest
+
i
)
%
16
)
;
i
++
)
{
(((
u
intptr_
t
)
dest
+
i
)
%
16
)
;
i
++
)
{
int
t
=
val
[
i
]
>>
19
;
dest
[
i
]
=
(
t
<
0
)
?
0
:
((
t
>
255
)
?
255
:
t
);
}
...
...
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