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

@@ -27,15 +27,14 @@
namespace jtag {
uint32_t JTAG::shift(const size_t count, uint32_t value) {
for(size_t i=0; i<count; i++) {
const auto tdo = target.clock(
(i == (count - 1)) ? 1 : 0,
value & 1
);
value >>= 1;
value |= tdo << (count - 1);
}
return value;
for (size_t i = 0; i < count; i++) {
const auto tdo = target.clock(
(i == (count - 1)) ? 1 : 0,
value & 1);
value >>= 1;
value |= tdo << (count - 1);
}
return value;
}
} /* namespace jtag */