mirror of
https://github.com/aicodix/dsp.git
synced 2026-04-27 14:30:36 +00:00
time to embrace #pragma once
This commit is contained in:
parent
a85cbcf6ba
commit
c4b837b045
13 changed files with 13 additions and 51 deletions
|
|
@ -4,8 +4,7 @@ Coefficient array helper
|
|||
Copyright 2018 Ahmet Inan <inan@aicodix.de>
|
||||
*/
|
||||
|
||||
#ifndef COEFFS_HH
|
||||
#define COEFFS_HH
|
||||
#pragma once
|
||||
|
||||
namespace DSP {
|
||||
|
||||
|
|
@ -45,5 +44,3 @@ public:
|
|||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -4,8 +4,7 @@ Fast complex math
|
|||
Copyright 2018 Ahmet Inan <inan@aicodix.de>
|
||||
*/
|
||||
|
||||
#ifndef COMPLEX_HH
|
||||
#define COMPLEX_HH
|
||||
#pragma once
|
||||
|
||||
template <typename T>
|
||||
class Complex
|
||||
|
|
@ -119,4 +118,3 @@ static constexpr T arg(Complex<T> a)
|
|||
return atan2(a.imag(), a.real());
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
5
const.hh
5
const.hh
|
|
@ -6,8 +6,7 @@ Constants below are the result of truncating the output of "bc -l" computed with
|
|||
Copyright 2018 Ahmet Inan <inan@aicodix.de>
|
||||
*/
|
||||
|
||||
#ifndef CONST_HH
|
||||
#define CONST_HH
|
||||
#pragma once
|
||||
|
||||
namespace DSP {
|
||||
|
||||
|
|
@ -63,5 +62,3 @@ struct Const
|
|||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
4
fft.hh
4
fft.hh
|
|
@ -4,8 +4,7 @@ Mixed-radix decimation-in-time fast Fourier transform
|
|||
Copyright 2018 Ahmet Inan <inan@aicodix.de>
|
||||
*/
|
||||
|
||||
#ifndef FFT_HH
|
||||
#define FFT_HH
|
||||
#pragma once
|
||||
|
||||
#include "unit_circle.hh"
|
||||
#include "const.hh"
|
||||
|
|
@ -1128,4 +1127,3 @@ public:
|
|||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -4,8 +4,7 @@ Some finite impulse response filter functions
|
|||
Copyright 2018 Ahmet Inan <inan@aicodix.de>
|
||||
*/
|
||||
|
||||
#ifndef FILTER_HH
|
||||
#define FILTER_HH
|
||||
#pragma once
|
||||
|
||||
#include "const.hh"
|
||||
#include "utils.hh"
|
||||
|
|
@ -57,5 +56,3 @@ public:
|
|||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
5
kahan.hh
5
kahan.hh
|
|
@ -4,8 +4,7 @@ Kahan summation algorithm
|
|||
Copyright 2018 Ahmet Inan <inan@aicodix.de>
|
||||
*/
|
||||
|
||||
#ifndef KAHAN_HH
|
||||
#define KAHAN_HH
|
||||
#pragma once
|
||||
|
||||
namespace DSP {
|
||||
|
||||
|
|
@ -55,5 +54,3 @@ T kahan_sum(I begin, I end, T init)
|
|||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
5
pcm.hh
5
pcm.hh
|
|
@ -4,8 +4,7 @@ Interface for reading and writing PCM data
|
|||
Copyright 2018 Ahmet Inan <inan@aicodix.de>
|
||||
*/
|
||||
|
||||
#ifndef PCM_HH
|
||||
#define PCM_HH
|
||||
#pragma once
|
||||
|
||||
namespace DSP {
|
||||
|
||||
|
|
@ -34,5 +33,3 @@ struct ReadPCM
|
|||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -4,8 +4,7 @@ Regression analysis
|
|||
Copyright 2018 Ahmet Inan <inan@aicodix.de>
|
||||
*/
|
||||
|
||||
#ifndef REGRESSION_HH
|
||||
#define REGRESSION_HH
|
||||
#pragma once
|
||||
|
||||
namespace DSP {
|
||||
|
||||
|
|
@ -53,5 +52,3 @@ public:
|
|||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -4,9 +4,7 @@ Resampling by an arbitrary rate difference
|
|||
Copyright 2018 Ahmet Inan <inan@aicodix.de>
|
||||
*/
|
||||
|
||||
|
||||
#ifndef RESAMPLER_HH
|
||||
#define RESAMPLER_HH
|
||||
#pragma once
|
||||
|
||||
#include "window.hh"
|
||||
#include "spline.hh"
|
||||
|
|
@ -52,5 +50,3 @@ public:
|
|||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -4,8 +4,7 @@ Some spline algorithms
|
|||
Copyright 2018 Ahmet Inan <inan@aicodix.de>
|
||||
*/
|
||||
|
||||
#ifndef SPLINE_HH
|
||||
#define SPLINE_HH
|
||||
#pragma once
|
||||
|
||||
namespace DSP {
|
||||
|
||||
|
|
@ -55,5 +54,3 @@ public:
|
|||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
5
utils.hh
5
utils.hh
|
|
@ -4,8 +4,7 @@ Some little helpers
|
|||
Copyright 2018 Ahmet Inan <inan@aicodix.de>
|
||||
*/
|
||||
|
||||
#ifndef UTILS_HH
|
||||
#define UTILS_HH
|
||||
#pragma once
|
||||
|
||||
#include "const.hh"
|
||||
|
||||
|
|
@ -49,5 +48,3 @@ TYPE decibel(TYPE v)
|
|||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
5
wav.hh
5
wav.hh
|
|
@ -4,8 +4,7 @@ Read and write WAV files
|
|||
Copyright 2018 Ahmet Inan <inan@aicodix.de>
|
||||
*/
|
||||
|
||||
#ifndef WAV_HH
|
||||
#define WAV_HH
|
||||
#pragma once
|
||||
|
||||
#include <fstream>
|
||||
#include "pcm.hh"
|
||||
|
|
@ -231,5 +230,3 @@ public:
|
|||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -4,8 +4,7 @@ Some window functions
|
|||
Copyright 2018 Ahmet Inan <inan@aicodix.de>
|
||||
*/
|
||||
|
||||
#ifndef WINDOW_HH
|
||||
#define WINDOW_HH
|
||||
#pragma once
|
||||
|
||||
#include "const.hh"
|
||||
#include "kahan.hh"
|
||||
|
|
@ -116,5 +115,3 @@ public:
|
|||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue