chore: enclose everything in namespace matar

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2023-09-21 10:52:40 +05:30
parent 1eb4a9545b
commit 1e8966553f
20 changed files with 61 additions and 17 deletions

View File

@@ -2,6 +2,7 @@
#include "util/bits.hh"
#include "util/log.hh"
namespace matar {
Psr::Psr(uint32_t raw)
: psr(raw & PSR_CLEAR_RESERVED) {}
@@ -59,7 +60,9 @@ GET_SET_NTH_BIT_FUNCTIONS(n, 31);
#undef GET_SET_NTH_BIT_FUNCTIONS
bool
Psr::condition(Condition cond) const {
Psr::condition(arm::Condition cond) const {
using arm::Condition;
switch (cond) {
case Condition::EQ:
return z();
@@ -95,3 +98,4 @@ Psr::condition(Condition cond) const {
return false;
}
}