提交 9e0ade83 authored 作者: Piotr Gregor's avatar Piotr Gregor

FS-9143 [avmd] #fix event headers

Make all headers starting from capital letter.
上级 c8e0eaac
#ifndef __AVMD_AMPLITUDE_H__ /*
* Contributor(s):
*
* Eric des Courtis <eric.des.courtis@benbria.com>
* Piotr Gregor <piotrgregor@rsyncme.org>
*/
#include <math.h> #include <math.h>
...@@ -11,7 +16,3 @@ double avmd_amplitude(circ_buffer_t *b, size_t i, double f) { ...@@ -11,7 +16,3 @@ double avmd_amplitude(circ_buffer_t *b, size_t i, double f) {
result = sqrt(PSI(b, i) / sin(f * f)); result = sqrt(PSI(b, i) / sin(f * f));
return result; return result;
} }
#endif /* __AVMD_AMPLITUDE_H__ */
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* Contributor(s): * Contributor(s):
* *
* Eric des Courtis <eric.des.courtis@benbria.com> * Eric des Courtis <eric.des.courtis@benbria.com>
* Piotr Gregor <piotrek.gregor gmail.com>: * Piotr Gregor <piotrgregor@rsyncme.org>
*/ */
......
/*
* Contributor(s):
*
* Eric des Courtis <eric.des.courtis@benbria.com>
*/
#ifndef __BUFFER_H__ #ifndef __BUFFER_H__
#include "avmd_buffer.h" #include "avmd_buffer.h"
#endif #endif
......
/* /*
* @brief Circular buffer. * @brief Circular buffer.
* *
* @author Eric des Courtis * Contributor(s):
* @par Modifications: Piotr Gregor < piotrek.gregor gmail.com > *
* Eric des Courtis <eric.des.courtis@benbria.com>
* Piotr Gregor <piotrgregor@rsyncme.org>
*/ */
......
#ifndef __AVMD_DESA2_H__ /*
* Contributor(s):
*
* Eric des Courtis <eric.des.courtis@benbria.com>
* Piotr Gregor <piotrgregor@rsyncme.org>
*/
#include <stdio.h> #include <stdio.h>
#ifdef WIN32 #ifdef WIN32
...@@ -63,5 +67,3 @@ double avmd_desa2(circ_buffer_t *b, size_t i, double *amplitude) { ...@@ -63,5 +67,3 @@ double avmd_desa2(circ_buffer_t *b, size_t i, double *amplitude) {
return result; return result;
} }
#endif /* __AVMD_DESA2_H__ */
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* Contributor(s): * Contributor(s):
* *
* Eric des Courtis <eric.des.courtis@benbria.com> * Eric des Courtis <eric.des.courtis@benbria.com>
* Piotr Gregor <piotrek.gregor gmail.com>: * Piotr Gregor <piotrgregor@rsyncme.org>
*/ */
......
/*
* Contributor(s):
*
* Piotr Gregor <piotrgregor@rsyncme.org>
*/
#ifndef __AVMD_DESA2_TWEAKED_H__ #ifndef __AVMD_DESA2_TWEAKED_H__
#include "avmd_desa2_tweaked.h"
#endif
#include <switch.h> #include <switch.h>
#include <stdio.h> #include <stdio.h>
#ifdef WIN32 #ifdef WIN32
#include <float.h> #include <float.h>
#define ISNAN(x) (!!(_isnan(x))) #define ISNAN(x) (!!(_isnan(x)))
#define ISINF(x) (isinf(x)) #define ISINF(x) (isinf(x))
#else #else
int __isnan(double); int __isnan(double);
#define ISNAN(x) (__isnan(x)) #define ISNAN(x) (__isnan(x))
#define ISINF(x) (__isinf(x)) #define ISINF(x) (__isinf(x))
#endif #endif
#include "avmd_buffer.h" #include "avmd_buffer.h"
#include "avmd_desa2_tweaked.h" #include "avmd_desa2_tweaked.h"
#include "avmd_options.h" #include "avmd_options.h"
#ifdef AVMD_FAST_MATH #ifndef AVMD_FAST_MATH
#include "avmd_fast_acosf.h" #include "avmd_fast_acosf.h"
#endif #endif
...@@ -64,5 +74,3 @@ avmd_desa2_tweaked(circ_buffer_t *b, size_t i, double *amplitude) { ...@@ -64,5 +74,3 @@ avmd_desa2_tweaked(circ_buffer_t *b, size_t i, double *amplitude) {
*amplitude = 2.0 * PSI_Xn / sqrt(PSI_Yn); *amplitude = 2.0 * PSI_Xn / sqrt(PSI_Yn);
return result; return result;
} }
#endif /* __AVMD_DESA2_TWEAKED_H__ */
...@@ -7,7 +7,11 @@ ...@@ -7,7 +7,11 @@
* be checked for convergence in the same time. * be checked for convergence in the same time.
* If the partial results converge then frequency * If the partial results converge then frequency
* converges too. * converges too.
* @author Piotr Gregor < piotrek.gregor gmail.com > *
* Contributor(s):
*
* Piotr Gregor <piotrgregor@rsyncme.org>
*
* @date 20 Mar 2016 * @date 20 Mar 2016
*/ */
......
/*
* Contributor(s):
*
* Eric des Courtis <eric.des.courtis@benbria.com>
* Piotr Gregor <piotrgregor@rsyncme.org>
*/
#ifndef WIN32 /* currently we support fast acosf computation only on UNIX/Linux */ #ifndef WIN32 /* currently we support fast acosf computation only on UNIX/Linux */
#include <switch.h> #include <switch.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#ifndef _MSC_VER #ifndef _MSC_VER
#include <stdint.h> #include <stdint.h>
#endif #endif
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <fcntl.h> #include <fcntl.h>
#ifndef _MSC_VER #ifndef _MSC_VER
#include <sys/mman.h> #include <sys/mman.h>
#endif #endif
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <math.h> #include <math.h>
#include <string.h> #include <string.h>
#ifndef _MSC_VER #ifndef _MSC_VER
#include <unistd.h> #include <unistd.h>
#endif #endif
#include "avmd_fast_acosf.h" #include "avmd_fast_acosf.h"
#include "avmd_options.h" #include "avmd_options.h"
......
#ifndef WIN32 /* currently we support fast acosf computation only on UNIX/Linux */ #ifndef WIN32 /* currently we support fast acosf computation only on UNIX/Linux */
/* /*
* @brief Fast arithmetic using precomputed arc cosine table. * @brief Fast arithmetic using precomputed arc cosine table.
*
* Contributor(s): * Contributor(s):
* *
* Eric des Courtis <eric.des.courtis@benbria.com> * Eric des Courtis <eric.des.courtis@benbria.com>
* Piotr Gregor <piotrek.gregor gmail.com> * Piotr Gregor <piotrgregor@rsyncme.org>
*/ */
......
/* /*
* @brief Filters. * @brief Filters.
* @author Piotr Gregor < piotrek.gregor gmail.com > *
* Contributor(s):
*
* Piotr Gregor <piotrgregor@rsyncme.org>
*
* @date 23 Mar 2016 * @date 23 Mar 2016
*/ */
......
#ifndef __AVMD_GOERTZEL_H__ /*
* Contributor(s):
*
* Eric des Courtis <eric.des.courtis@benbria.com>
*/
#include <math.h> #include <math.h>
#include "avmd_goertzel.h"
#include "avmd_buffer.h" #ifndef __AVMD_GOERTZEL_H__
#include "avmd_goertzel.h"
#endif
#ifndef __AVMD_BUFFER_H__
#include "avmd_buffer.h"
#endif
extern double avmd_goertzel(circ_buffer_t *b, size_t pos, double f, size_t num) extern double avmd_goertzel(circ_buffer_t *b, size_t pos, double f, size_t num)
...@@ -25,6 +35,3 @@ extern double avmd_goertzel(circ_buffer_t *b, size_t pos, double f, size_t num) ...@@ -25,6 +35,3 @@ extern double avmd_goertzel(circ_buffer_t *b, size_t pos, double f, size_t num)
return (p2 * p2) + (p * p) - (coeff * p2 * p); return (p2 * p2) + (p * p) - (coeff * p2 * p);
} }
#endif /* __AVMD_GOERTZEL_H__ */
/* /*
* @brief Goertzel algorithm. * @brief Goertzel algorithm.
* @author Eric des Courtis *
* Contributor(s):
*
* Eric des Courtis <eric.des.courtis@benbria.com>
*/ */
...@@ -9,13 +12,14 @@ ...@@ -9,13 +12,14 @@
#ifndef _MSC_VER #ifndef _MSC_VER
#include <stdint.h> #include <stdint.h>
#endif #endif
#include "avmd_buffer.h" #include "avmd_buffer.h"
#if !defined(M_PI) #if !defined(M_PI)
/* C99 systems may not define M_PI */ /* C99 systems may not define M_PI */
#define M_PI 3.14159265358979323846264338327 #define M_PI 3.14159265358979323846264338327
#endif #endif
......
...@@ -5,8 +5,7 @@ ...@@ -5,8 +5,7 @@
* *
* Contributor(s): * Contributor(s):
* *
* Piotr Gregor <piotrek.gregor gmail.com>: * Piotr Gregor <piotrgregor@rsyncme.org>
* Eric des Courtis <eric.des.courtis@benbria.com>
*/ */
......
/*
* Contributor(s):
*
* Eric des Courtis <eric.des.courtis@benbria.com>
* Piotr Gregor <piotrgregor@rsyncme.org>
*/
#ifndef __AVMD_PSI_H__ #ifndef __AVMD_PSI_H__
#define __AVMD_PSI_H__ #define __AVMD_PSI_H__
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* Contributor(s): * Contributor(s):
* *
* Eric des Courtis <eric.des.courtis@benbria.com> * Eric des Courtis <eric.des.courtis@benbria.com>
* Piotr Gregor <piotrek.gregor gmail.com> * Piotr Gregor <piotrgregor@rsyncme.org>
*/ */
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论