Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
White Rabbit Switch - Software
Commits
a7da99f4
Commit
a7da99f4
authored
Oct 25, 2013
by
Tomasz Wlostowski
Committed by
Alessandro Rubini
Jan 12, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
softpll: fix incorrect sign in ptracker sign wraparound check
parent
fe7251ba
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
spll_ptracker.c
rt/softpll/spll_ptracker.c
+2
-3
No files found.
rt/softpll/spll_ptracker.c
View file @
a7da99f4
...
...
@@ -33,19 +33,18 @@ void ptracker_start(struct spll_ptracker_state *s)
s
->
avg_count
=
0
;
spll_enable_tagger
(
s
->
id
,
1
);
spll_enable_tagger
(
spll_n_chan_ref
,
1
);
}
int
ptrackers_update
(
struct
spll_ptracker_state
*
ptrackers
,
int
tag
,
int
source
)
{
const
int
adj_tab
[
16
]
=
{
/* psign */
/* 0 - 1/4 */
0
,
0
,
0
,
(
1
<<
HPLL_N
),
/* 0 - 1/4 */
0
,
0
,
0
,
-
(
1
<<
HPLL_N
),
/* 1/4 - 1/2 */
0
,
0
,
0
,
0
,
/* 1/2 - 3/4 */
0
,
0
,
0
,
0
,
/* 3/4 - 1 */
(
1
<<
HPLL_N
),
0
,
0
,
0
};
if
(
source
>
spll_n_chan_ref
)
return
0
;
if
(
source
==
spll_n_chan_ref
)
{
tag_ref
=
tag
;
...
...
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