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
044134eb
Commit
044134eb
authored
Mar 14, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pcm/PcmFormat: eliminate local variable "bits"
parent
9fa6fa52
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
PcmFormat.cxx
src/pcm/PcmFormat.cxx
+1
-3
No files found.
src/pcm/PcmFormat.cxx
View file @
044134eb
...
...
@@ -60,9 +60,7 @@ static void
ConvertFromFloat
(
typename
Traits
::
pointer_type
dest
,
const
float
*
src
,
size_t
n
)
{
constexpr
auto
bits
=
Traits
::
BITS
;
const
float
factor
=
1
<<
(
bits
-
1
);
const
float
factor
=
1
<<
(
Traits
::
BITS
-
1
);
for
(
size_t
i
=
0
;
i
!=
n
;
++
i
)
{
typename
Traits
::
long_type
sample
(
src
[
i
]
*
factor
);
...
...
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