Cleanup type abbreviations

pull/4/head
PABR TECHNOLOGIES 2017-02-21 10:47:49 +01:00
rodzic c928aef4c7
commit ab72b2f5de
2 zmienionych plików z 16 dodań i 10 usunięć

Wyświetl plik

@ -248,6 +248,15 @@ namespace leansdr {
template<typename T>
T max(const T &x, const T &y) { return (x<y) ? y : x; }
// Abreviations for integer types
typedef unsigned char u8;
typedef unsigned short u16;
typedef unsigned long u32;
typedef signed char s8;
typedef signed short s16;
typedef signed long s32;
} // namespace
#endif // LEANSDR_FRAMEWORK_H

Wyświetl plik

@ -6,22 +6,19 @@
namespace leansdr {
//////////////////////////////////////////////////////////////////////
// SDR blocks
//////////////////////////////////////////////////////////////////////
typedef unsigned char u8;
typedef unsigned short u16;
typedef unsigned long u32;
typedef signed char s8;
// Abbreviations for floating-point types
typedef float f32;
typedef complex<f32> cf32;
typedef complex<f32> iqsymbol;
typedef complex<u8> cu8;
typedef complex<s8> cs8;
//////////////////////////////////////////////////////////////////////
// SDR blocks
//////////////////////////////////////////////////////////////////////
// AUTO-NOTCH FILTER
// Periodically detects the [nslots] strongest peaks with a FFT,