Skip to content

Commit

Permalink
Make declarations static for covr (#5910)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico committed Feb 19, 2024
1 parent 274a59d commit 8eaa5a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/froll.c
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ void frollmax(unsigned int algo, double *x, uint64_t nx, ans_t *ans, int k, int
if (verbose)
snprintf(end(ans->message[0]), 500, _("%s: processing algo %u took %.3fs\n"), __func__, algo, omp_get_wtime()-tic);
}
inline void windowmax(double *x, uint64_t o, int k, /* max of current window */ double *w, /* index of w within window */ uint64_t *iw) {
static inline void windowmax(double *x, uint64_t o, int k, /* max of current window */ double *w, /* index of w within window */ uint64_t *iw) {
for (int i=0; i<k-1; i++) {
//Rprintf("windowmax iteration %d, offset %d, first x val %f, testing x[o+i-k+1] >= w[0]: x[%d-%d+1] >= w[0]: %f >= %f: %d\n", i, o, x[o], i, k, x[o+i-k+1], w[0], x[o+i-k+1] >= w[0]);
if (x[o+i-k+1] >= w[0]) { // what if that is never satisfied? test!
Expand All @@ -438,7 +438,7 @@ inline void windowmax(double *x, uint64_t o, int k, /* max of current window */
}
}
}
inline void windowmaxnarm(double *x, uint64_t o, int k, bool narm, /* NA counter */ int *nc, double *w, uint64_t *iw) {
static inline void windowmaxnarm(double *x, uint64_t o, int k, bool narm, /* NA counter */ int *nc, double *w, uint64_t *iw) {
for (int i=0; i<k-1; i++) {
//Rprintf("windowmax iteration %d, offset %d, first x val %f, testing x[o+i-k+1] >= w[0]: x[%d-%d+1] >= w[0]: %f >= %f: %d\n", i, o, x[o], i, k, x[o+i-k+1], w[0], x[o+i-k+1] >= w[0]);
if (R_FINITE(x[o+i-k+1])) {
Expand Down

0 comments on commit 8eaa5a1

Please sign in to comment.