mirror of https://github.com/openXC7/prjxray.git
`make format` all files.
Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
This commit is contained in:
parent
4ac44e60bb
commit
aa35026d4f
|
|
@ -60,7 +60,7 @@ ConfigurationBus::ConfigurationBus(T first, T last) {
|
|||
std::sort(first, last,
|
||||
[](const FrameAddress& lhs, const FrameAddress& rhs) {
|
||||
return lhs.column() < rhs.column();
|
||||
});
|
||||
});
|
||||
|
||||
for (auto col_first = first; col_first != last;) {
|
||||
auto col_last = std::upper_bound(
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ GlobalClockRegion::GlobalClockRegion(T first, T last) {
|
|||
std::sort(first, last,
|
||||
[](const FrameAddress& lhs, const FrameAddress& rhs) {
|
||||
return lhs.row() < rhs.row();
|
||||
});
|
||||
});
|
||||
|
||||
for (auto row_first = first; row_first != last;) {
|
||||
auto row_last = std::upper_bound(
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ Row::Row(T first, T last) {
|
|||
std::sort(first, last,
|
||||
[](const FrameAddress& lhs, const FrameAddress& rhs) {
|
||||
return lhs.block_type() < rhs.block_type();
|
||||
});
|
||||
});
|
||||
|
||||
for (auto bus_first = first; bus_first != last;) {
|
||||
auto bus_last = std::upper_bound(
|
||||
|
|
|
|||
|
|
@ -43,12 +43,14 @@ TEST(ConfigurationTest, ConstructFromPacketsWithSingleFrame) {
|
|||
{
|
||||
static_cast<unsigned int>(0x1),
|
||||
xc7series::ConfigurationPacket::Opcode::Write,
|
||||
xc7series::ConfigurationRegister::CMD, absl::MakeSpan(cmd),
|
||||
xc7series::ConfigurationRegister::CMD,
|
||||
absl::MakeSpan(cmd),
|
||||
},
|
||||
{
|
||||
static_cast<unsigned int>(0x1),
|
||||
xc7series::ConfigurationPacket::Opcode::Write,
|
||||
xc7series::ConfigurationRegister::FDRI, absl::MakeSpan(frame),
|
||||
xc7series::ConfigurationRegister::FDRI,
|
||||
absl::MakeSpan(frame),
|
||||
},
|
||||
};
|
||||
|
||||
|
|
@ -94,12 +96,14 @@ TEST(ConfigurationTest, ConstructFromPacketsWithAutoincrement) {
|
|||
{
|
||||
static_cast<unsigned int>(0x1),
|
||||
xc7series::ConfigurationPacket::Opcode::Write,
|
||||
xc7series::ConfigurationRegister::CMD, absl::MakeSpan(cmd),
|
||||
xc7series::ConfigurationRegister::CMD,
|
||||
absl::MakeSpan(cmd),
|
||||
},
|
||||
{
|
||||
static_cast<unsigned int>(0x1),
|
||||
xc7series::ConfigurationPacket::Opcode::Write,
|
||||
xc7series::ConfigurationRegister::FDRI, absl::MakeSpan(frame),
|
||||
xc7series::ConfigurationRegister::FDRI,
|
||||
absl::MakeSpan(frame),
|
||||
},
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ int patch_frames(
|
|||
frame_data_strings.end(), frame_data.begin(),
|
||||
[](const std::string& val) -> uint32_t {
|
||||
return std::stoul(val, nullptr, 16);
|
||||
});
|
||||
});
|
||||
|
||||
uint32_t ecc = 0;
|
||||
for (size_t ii = 0; ii < frame_data.size(); ++ii) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue