Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
libaec
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Mathis Rosenhauer
libaec
Commits
38591879
Commit
38591879
authored
Jan 28, 2016
by
Mathis Rosenhauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Vertorization is also enabled with size_t type loop index
Thanks to Thomas J. for suggestion.
parent
81c53aeb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/encode.c
src/encode.c
+4
-4
No files found.
src/encode.c
View file @
38591879
...
...
@@ -246,8 +246,8 @@ static void preprocess_unsigned(struct aec_stream *strm)
const
uint32_t
*
restrict
x
=
state
->
data_raw
;
uint32_t
*
restrict
d
=
state
->
data_pp
;
uint32_t
xmax
=
state
->
xmax
;
int
rsi
=
(
int
)
strm
->
rsi
*
strm
->
block_size
-
1
;
in
t
i
;
uint32_t
rsi
=
strm
->
rsi
*
strm
->
block_size
-
1
;
size_
t
i
;
state
->
ref
=
1
;
state
->
ref_sample
=
x
[
0
];
...
...
@@ -282,9 +282,9 @@ static void preprocess_signed(struct aec_stream *strm)
uint32_t
*
restrict
d
=
state
->
data_pp
;
int32_t
xmax
=
(
int32_t
)
state
->
xmax
;
int32_t
xmin
=
(
int32_t
)
state
->
xmin
;
int
rsi
=
(
int
)
strm
->
rsi
*
strm
->
block_size
-
1
;
uint32_t
rsi
=
strm
->
rsi
*
strm
->
block_size
-
1
;
uint32_t
m
=
UINT64_C
(
1
)
<<
(
strm
->
bits_per_sample
-
1
);
in
t
i
;
size_
t
i
;
state
->
ref
=
1
;
state
->
ref_sample
=
x
[
0
];
...
...
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