Formatted code (#1007)

* Updated style

* Updated files

* fixed new line

* Updated spacing

* File fix WIP

* Updated to clang 13

* updated comment style

* Removed old comment code
This commit is contained in:
jLynx
2023-05-19 08:16:05 +12:00
committed by GitHub
parent 7aca7ce74d
commit 033c4e9a5b
599 changed files with 70746 additions and 66896 deletions

View File

@@ -28,28 +28,28 @@
namespace symbol_coding {
class NRZIDecoder {
public:
uint_fast8_t operator()(const uint_fast8_t symbol) {
const auto out = (~(symbol ^ last)) & 1;
last = symbol;
return out;
}
public:
uint_fast8_t operator()(const uint_fast8_t symbol) {
const auto out = (~(symbol ^ last)) & 1;
last = symbol;
return out;
}
private:
uint_fast8_t last { 0 };
private:
uint_fast8_t last{0};
};
class ACARSDecoder {
public:
uint_fast8_t operator()(const uint_fast8_t symbol) {
last ^= (~symbol & 1);
return last;
}
public:
uint_fast8_t operator()(const uint_fast8_t symbol) {
last ^= (~symbol & 1);
return last;
}
private:
uint_fast8_t last { 0 };
private:
uint_fast8_t last{0};
};
} /* namespace symbol_coding */
#endif/*__SYMBOL_CODING_H__*/
#endif /*__SYMBOL_CODING_H__*/