From c80c453dd53b980e6d73d03e881a7bd8a9152ca6 Mon Sep 17 00:00:00 2001 From: SergioMartin86 Date: Sun, 24 Mar 2024 17:42:05 +0100 Subject: [PATCH] Using a proper flag for using gnu compilers for the function alignment --- source/quickerNES/core/cpu.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/quickerNES/core/cpu.cpp b/source/quickerNES/core/cpu.cpp index 0da010c..9daf8ce 100644 --- a/source/quickerNES/core/cpu.cpp +++ b/source/quickerNES/core/cpu.cpp @@ -222,8 +222,8 @@ uint8_t clock_table [256] = { 3,5,2,8,4,4,6,6,2,4,2,7,4,4,7,7 // F }; -// This optimization is only possible on linux systems -- MSVC does not allow function alignment -#ifdef __linux__ +// This optimization is only possible with the GNU compiler -- MSVC does not allow function alignment +#ifdef __GNUC__ __attribute__((optimize("align-functions=1024"))) #endif Cpu::result_t Cpu::run ( nes_time_t end )