summaryrefslogtreecommitdiff
path: root/src/core/hw/hw.cpp
diff options
context:
space:
mode:
authorGravatar Emmanuel Gil Peyrot2016-09-18 09:38:01 +0900
committerGravatar Emmanuel Gil Peyrot2016-09-18 09:38:01 +0900
commitdc8479928c5aee4c6ad6fe4f59006fb604cee701 (patch)
tree569a7f13128450bbab973236615587ff00bced5f /src/core/hw/hw.cpp
parentTravis: Import Dolphin’s clang-format hook. (diff)
downloadyuzu-dc8479928c5aee4c6ad6fe4f59006fb604cee701.tar.gz
yuzu-dc8479928c5aee4c6ad6fe4f59006fb604cee701.tar.xz
yuzu-dc8479928c5aee4c6ad6fe4f59006fb604cee701.zip
Sources: Run clang-format on everything.
Diffstat (limited to 'src/core/hw/hw.cpp')
-rw-r--r--src/core/hw/hw.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/core/hw/hw.cpp b/src/core/hw/hw.cpp
index b5fdbf9c1..db224c9aa 100644
--- a/src/core/hw/hw.cpp
+++ b/src/core/hw/hw.cpp
@@ -5,14 +5,14 @@
5#include "common/common_types.h" 5#include "common/common_types.h"
6#include "common/logging/log.h" 6#include "common/logging/log.h"
7 7
8#include "core/hw/hw.h"
9#include "core/hw/gpu.h" 8#include "core/hw/gpu.h"
9#include "core/hw/hw.h"
10#include "core/hw/lcd.h" 10#include "core/hw/lcd.h"
11 11
12namespace HW { 12namespace HW {
13 13
14template <typename T> 14template <typename T>
15inline void Read(T &var, const u32 addr) { 15inline void Read(T& var, const u32 addr) {
16 switch (addr & 0xFFFFF000) { 16 switch (addr & 0xFFFFF000) {
17 case VADDR_GPU: 17 case VADDR_GPU:
18 case VADDR_GPU + 0x1000: 18 case VADDR_GPU + 0x1000:
@@ -71,10 +71,10 @@ inline void Write(u32 addr, const T data) {
71 71
72// Explicitly instantiate template functions because we aren't defining this in the header: 72// Explicitly instantiate template functions because we aren't defining this in the header:
73 73
74template void Read<u64>(u64 &var, const u32 addr); 74template void Read<u64>(u64& var, const u32 addr);
75template void Read<u32>(u32 &var, const u32 addr); 75template void Read<u32>(u32& var, const u32 addr);
76template void Read<u16>(u16 &var, const u32 addr); 76template void Read<u16>(u16& var, const u32 addr);
77template void Read<u8>(u8 &var, const u32 addr); 77template void Read<u8>(u8& var, const u32 addr);
78 78
79template void Write<u64>(u32 addr, const u64 data); 79template void Write<u64>(u32 addr, const u64 data);
80template void Write<u32>(u32 addr, const u32 data); 80template void Write<u32>(u32 addr, const u32 data);
@@ -98,5 +98,4 @@ void Shutdown() {
98 LCD::Shutdown(); 98 LCD::Shutdown();
99 LOG_DEBUG(HW, "shutdown OK"); 99 LOG_DEBUG(HW, "shutdown OK");
100} 100}
101
102} 101}