File: demod_binary_hs_cpu.h

package info (click to toggle)
boinc-app-eah-brp 0.20170426%2Bdfsg-10
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,940 kB
  • sloc: ansic: 5,508; cpp: 3,512; makefile: 206; sh: 157
file content (68 lines) | stat: -rw-r--r-- 3,333 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
/***************************************************************************
 *   Copyright (C) 2010 by Oliver Bock                                     *
 *   oliver.bock[AT]aei.mpg.de                                             *
 *   Copyright (C) 2010 by Heinz-Bernd Eggenstein                          *
 *                                                                         *
 *   This file is part of Einstein@Home (Radio Pulsar Edition).            *
 *                                                                         *
 *   Description:                                                          *
 *   Performs harmonic summing (2nd  ...16th harmonic) of powerspectrum    *
 *   CPU variant.                                                          *
 *                                                                         *
 *   Einstein@Home is free software: you can redistribute it and/or modify *
 *   it under the terms of the GNU General Public License as published     *
 *   by the Free Software Foundation, version 2 of the License.            *
 *                                                                         *
 *   Einstein@Home is distributed in the hope that it will be useful,      *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the          *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with Einstein@Home. If not, see <http://www.gnu.org/licenses/>. *
 *                                                                         *
 ***************************************************************************/

#ifndef DEMOD_BINARY_HS_CPU_H
#define DEMOD_BINARY_HS_CPU_H

#include <stdint.h>

#include "diptr.h"

#ifdef __cplusplus
extern "C" {
#endif

extern int set_up_harmonic_summing(float ** const sumspec,
                                   int32_t ** const dirty,
                                   unsigned int * const nr_pages_ptr,
                                   const unsigned int fundamental_idx_hi,
                                   const unsigned int harmonic_idx_hi);

extern int harmonic_summing(float ** const sumspec,
                     int32_t ** const dirtyFlags,
                     const float * const powerspectrum,
                     unsigned int window_2,
                     unsigned int fundamental_idx_hi,
                     unsigned int harmonic_idx_hi,
                     const float * const thr);

extern int run_harmonic_summing(float **sumspec, 
                                int32_t ** dirty_flags, 
                                const unsigned int nr_pages,
                                DIfloatPtr powerspectrum, 
                                unsigned int window_2, 
                                const unsigned int fundamental_idx_hi,
                                const unsigned int harmonic_idx_hi,
                                const float * const thresholds);

extern int tear_down_harmonic_summing(float ** const sumspec,
                                      int32_t ** const dirty);


#ifdef __cplusplus
}
#endif

#endif