diff options
author | bd <bdunahu@operationnull.com> | 2025-03-11 10:50:11 -0400 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2025-03-11 10:50:11 -0400 |
commit | acb0bc357a9dfe6d89321d127b72693031435e65 (patch) | |
tree | 68ed796714aee612e7e244c2672326e586f2795b /src/storage | |
parent | f34156105801c81677c54d1713104ac3d7c1c112 (diff) |
fix namespace issues with match function
Diffstat (limited to 'src/storage')
-rw-r--r-- | src/storage/cache.cc | 4 | ||||
-rw-r--r-- | src/storage/dram.cc | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/storage/cache.cc b/src/storage/cache.cc index d382c3d..1a8a10b 100644 --- a/src/storage/cache.cc +++ b/src/storage/cache.cc @@ -104,7 +104,7 @@ std::ostream &operator<<(std::ostream &os, const Cache &c) << " | " << std::setfill(' ') << std::setw((8 + 3) * 4 - 1) << "DATA" << " | " << std::setfill(' ') << std::setw(MEM_SPEC - LINE_SPEC - L1_CACHE_SPEC + 2) << "TAG" - << " | D\n"; + << " | D" << std::endl; for (int i = 0; i < L1_CACHE_SIZE; ++i) { os << " 0b" << std::setw(L1_CACHE_SPEC) << std::bitset<L1_CACHE_SPEC>(i) << " | "; @@ -114,7 +114,7 @@ std::ostream &operator<<(std::ostream &os, const Cache &c) } os << "| 0x" << std::setfill(' ') << std::bitset<MEM_SPEC - LINE_SPEC - L1_CACHE_SPEC>(meta.at(i)[0]) - << " | " << (int)(meta.at(i)[0] >= 0) << '\n'; + << " | " << (int)(meta.at(i)[0] >= 0) << std::endl; } std::cout.flags(default_flags); diff --git a/src/storage/dram.cc b/src/storage/dram.cc index 7353bce..e755c2a 100644 --- a/src/storage/dram.cc +++ b/src/storage/dram.cc @@ -1,8 +1,8 @@ #include "dram.h" #include "definitions.h" #include "response.h" -#include <bits/stdc++.h> #include <algorithm> +#include <bits/stdc++.h> #include <bitset> #include <iostream> #include <iterator> @@ -80,18 +80,18 @@ std::ostream &operator<<(std::ostream &os, const Dram &d) const auto default_flags = std::cout.flags(); const auto default_fill = std::cout.fill(); - std::vector<std::array<signed int, LINE_SIZE>> data = - d.view(0, MEM_SIZE); + std::vector<std::array<signed int, LINE_SIZE>> data = d.view(0, MEM_SIZE); os << " " << std::setfill(' ') << std::setw(MEM_SPEC + 2) << "INDEX" - << " | " << std::setfill(' ') << std::setw((8 + 3) * 4 - 1) << "DATA" << '\n'; + << " | " << std::setfill(' ') << std::setw((8 + 3) * 4 - 1) << "DATA" + << std::endl; for (int i = 0; i < MEM_SIZE; ++i) { os << " 0b" << std::setw(MEM_SPEC) << std::bitset<MEM_SPEC>(i) << " | "; for (int j = 0; j < LINE_SIZE; ++j) { os << "0x" << std::setfill('0') << std::setw(8) << std::hex << data.at(i).at(j) << ' '; } - os << '\n'; + os << std::endl; } std::cout.flags(default_flags); |