Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dav1d
Manage
Activity
Members
Labels
Plan
Issues
25
Issue boards
Milestones
Wiki
Code
Merge requests
13
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
dav1d
Commits
4e2a3f6d
Commit
4e2a3f6d
authored
2 years ago
by
Luca Barbato
Browse files
Options
Downloads
Patches
Plain Diff
ppc: Do not use static const with vec_splats
clang-15 doesn't consider it compile-time-constant anymore.
parent
4b9f5b70
No related branches found
No related tags found
1 merge request
!1464
Unbreak ppc64le
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/ppc/looprestoration_tmpl.c
+10
-10
10 additions, 10 deletions
src/ppc/looprestoration_tmpl.c
with
10 additions
and
10 deletions
src/ppc/looprestoration_tmpl.c
+
10
−
10
View file @
4e2a3f6d
...
...
@@ -50,12 +50,12 @@ static void wiener_filter_h_vsx(int32_t *hor_ptr,
const
int16_t
filterh
[
8
],
const
int
w
,
const
int
h
)
{
static
const
i32x4
zerov
=
vec_splats
(
0
);
static
const
i32x4
seven_vec
=
vec_splats
(
7
);
static
const
i32x4
bitdepth_added_vec
=
vec_splats
(
1
<<
14
);
static
const
i32x4
round_bits_vec
=
vec_splats
(
3
);
static
const
i32x4
rounding_off_vec
=
vec_splats
(
1
<<
2
);
static
const
i32x4
clip_limit_v
=
vec_splats
((
1
<<
13
)
-
1
);
const
i32x4
zerov
=
vec_splats
(
0
);
const
i32x4
seven_vec
=
vec_splats
(
7
);
const
i32x4
bitdepth_added_vec
=
vec_splats
(
1
<<
14
);
const
i32x4
round_bits_vec
=
vec_splats
(
3
);
const
i32x4
rounding_off_vec
=
vec_splats
(
1
<<
2
);
const
i32x4
clip_limit_v
=
vec_splats
((
1
<<
13
)
-
1
);
i16x8
filterhvall
=
vec_vsx_ld
(
0
,
filterh
);
i16x8
filterhv0
=
vec_splat
(
filterhvall
,
0
);
...
...
@@ -128,8 +128,8 @@ static void wiener_filter_h_vsx(int32_t *hor_ptr,
}
static
inline
i16x8
iclip_u8_vec
(
i16x8
v
)
{
static
const
i16x8
zerov
=
vec_splats
((
int16_t
)
0
);
static
const
i16x8
maxv
=
vec_splats
((
int16_t
)
255
);
const
i16x8
zerov
=
vec_splats
((
int16_t
)
0
);
const
i16x8
maxv
=
vec_splats
((
int16_t
)
255
);
v
=
vec_max
(
zerov
,
v
);
v
=
vec_min
(
maxv
,
v
);
return
v
;
...
...
@@ -175,8 +175,8 @@ static inline void wiener_filter_v_vsx(uint8_t *p,
const
int16_t
filterv
[
8
],
const
int
w
,
const
int
h
)
{
static
const
i32x4
round_bits_vec
=
vec_splats
(
11
);
static
const
i32x4
round_vec
=
vec_splats
((
1
<<
10
)
-
(
1
<<
18
));
const
i32x4
round_bits_vec
=
vec_splats
(
11
);
const
i32x4
round_vec
=
vec_splats
((
1
<<
10
)
-
(
1
<<
18
));
i32x4
filterv0
=
vec_splats
((
int32_t
)
filterv
[
0
]);
i32x4
filterv1
=
vec_splats
((
int32_t
)
filterv
[
1
]);
...
...
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