From 2b5a54b401668d46d20fd69411800c5790a1f892 Mon Sep 17 00:00:00 2001 From: Brandon Wright Date: Tue, 5 Jul 2011 06:23:24 -0500 Subject: [PATCH] Inline ticks. This should fix speed issues. --- apu/bapu/smp/smp.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apu/bapu/smp/smp.hpp b/apu/bapu/smp/smp.hpp index 1bf75129..cb57f334 100644 --- a/apu/bapu/smp/smp.hpp +++ b/apu/bapu/smp/smp.hpp @@ -85,15 +85,15 @@ public: uint8 stage2_ticks; uint8 stage3_ticks; - void tick(); - void tick(unsigned clocks); + inline void tick(); + inline void tick(unsigned clocks); }; Timer<128> timer0; Timer<128> timer1; Timer< 16> timer2; - alwaysinline void tick(); + inline void tick(); alwaysinline void op_io(); debugvirtual alwaysinline uint8 op_read(uint16 addr); debugvirtual alwaysinline void op_write(uint16 addr, uint8 data);