time to embrace #pragma once

This commit is contained in:
Ahmet Inan 2019-01-19 14:07:07 +01:00
commit c4b837b045
13 changed files with 13 additions and 51 deletions

View file

@ -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

View file

@ -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

View file

@ -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
View file

@ -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

View file

@ -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

View file

@ -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
View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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
View file

@ -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

View file

@ -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