Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GstLAL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
lscsoft
GstLAL
Commits
d1426d30
There was a problem fetching the pipeline summary.
Commit
d1426d30
authored
6 years ago
by
Aaron Viets
Browse files
Options
Downloads
Patches
Plain Diff
lal_trackfrequency: Minor bookkeeping bug fix.
parent
bb56f0bc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gstlal-calibration/gst/lal/gstlal_trackfrequency.c
+18
-2
18 additions, 2 deletions
gstlal-calibration/gst/lal/gstlal_trackfrequency.c
with
18 additions
and
2 deletions
gstlal-calibration/gst/lal/gstlal_trackfrequency.c
+
18
−
2
View file @
d1426d30
...
...
@@ -101,6 +101,7 @@ static void trackfrequency_ ## DTYPE(const DTYPE *src, DTYPE *dst, gint64 size,
gint64 j = 0; \
while(i < size - 1) { \
\
gboolean shift = FALSE; \
while(*check_step) { \
if(*sign * src[i] < 0) { \
*check_step = -(*check_step) / 2; \
...
...
@@ -112,9 +113,16 @@ static void trackfrequency_ ## DTYPE(const DTYPE *src, DTYPE *dst, gint64 size,
if(*check_step >= size - i) \
*check_step = (size - i) / 2; \
i += *check_step; \
if(*check_step == -1) \
shift = TRUE; \
} \
/* Make sure we are after the transition */
\
if(shift) { \
i ++; \
*sign = -(*sign); \
} \
\
/* At this point, we
could be on
either
side of
a +/- transition
, and/
or at the end of the buffer */
\
/* At this point, we
are
either
after
a +/- transition
or at the end of the buffer */
\
if(i == 0) { \
/* There is a transition at the beginning of a buffer */
\
*dst = (DTYPE) *current_frequency; \
...
...
@@ -182,6 +190,7 @@ static void trackfrequency_complex_ ## DTYPE(const DTYPE complex *src, DTYPE *ds
gint64 j = 0; \
while(i < size - 1) { \
\
gboolean shift = FALSE; \
while(*check_step) { \
if(*sign * creal ## F_OR_BLANK(src[i]) < 0) { \
*check_step = -(*check_step) / 2; \
...
...
@@ -193,9 +202,16 @@ static void trackfrequency_complex_ ## DTYPE(const DTYPE complex *src, DTYPE *ds
if(*check_step >= size - i) \
*check_step = (size - i) / 2; \
i += *check_step; \
if(*check_step == -1) \
shift = TRUE; \
} \
/* Make sure we are after the transition */
\
if(shift) { \
i ++; \
*sign = -(*sign); \
} \
\
/* At this point, we
could be on
either
side of
a +/- transition
, and/
or at the end of the buffer */
\
/* At this point, we
are
either
after
a +/- transition
or at the end of the buffer */
\
if(i == 0) { \
/* There is a transition at the beginning of a buffer */
\
*dst = (DTYPE) *current_frequency; \
...
...
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