Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
4038d852
Commit
4038d852
authored
5 years ago
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pcm/Dsd2Pcm: eliminate "& 0xff"
parent
3565f0c8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Dsd2Pcm.cxx
src/pcm/Dsd2Pcm.cxx
+3
-3
No files found.
src/pcm/Dsd2Pcm.cxx
View file @
4038d852
...
...
@@ -176,8 +176,8 @@ Dsd2Pcm::CalcOutputSample(size_t ffp) const noexcept
{
double
acc
=
0
;
for
(
size_t
i
=
0
;
i
<
CTABLES
;
++
i
)
{
u
nsigned
bite1
=
fifo
[(
ffp
-
i
)
&
FIFOMASK
]
&
0xFF
;
u
nsigned
bite2
=
fifo
[(
ffp
-
(
CTABLES
*
2
-
1
)
+
i
)
&
FIFOMASK
]
&
0xFF
;
u
int8_t
bite1
=
fifo
[(
ffp
-
i
)
&
FIFOMASK
]
;
u
int8_t
bite2
=
fifo
[(
ffp
-
(
CTABLES
*
2
-
1
)
+
i
)
&
FIFOMASK
]
;
acc
+=
ctables
[
i
][
bite1
]
+
ctables
[
i
][
bite2
];
}
return
acc
;
...
...
@@ -198,7 +198,7 @@ Dsd2Pcm::Translate(size_t samples,
{
size_t
ffp
=
fifopos
;
while
(
samples
--
>
0
)
{
u
nsigned
bite1
=
*
src
&
0xFFu
;
u
int8_t
bite1
=
*
src
;
src
+=
src_stride
;
if
(
lsbf
)
bite1
=
bit_reverse
(
bite1
);
*
dst
=
TranslateSample
(
ffp
,
bite1
);
...
...
This diff is collapsed.
Click to expand it.
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