From 7856037e6697d353a2d14e734fcfd416efac4b9c Mon Sep 17 00:00:00 2001 From: jdgleaver Date: Thu, 22 Oct 2020 11:39:40 +0100 Subject: [PATCH] Clean up OpenDingux compiler options + style nits --- Makefile.libretro | 6 +----- src/platform/libretro/libretro.c | 5 ++--- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/Makefile.libretro b/Makefile.libretro index fd5cf1a1a..1acfd6c7d 100644 --- a/Makefile.libretro +++ b/Makefile.libretro @@ -392,11 +392,7 @@ else ifeq ($(platform), gcw0) AR = /opt/gcw0-toolchain/usr/bin/mipsel-linux-ar PLATFORM_DEFINES += -D_GNU_SOURCE CFLAGS += -fomit-frame-pointer -ffast-math -march=mips32 -mtune=mips32r2 -mhard-float - # The core is very slow on GCW0 platforms - # Use all possible optimisations... - CFLAGS += -finline-limit=42 -fno-unroll-loops -fno-ipa-cp - CFLAGS += -fno-common -fno-stack-protector -fno-guess-branch-probability - CFLAGS += -fno-caller-saves -fno-tree-loop-if-convert -fno-regmove + CFLAGS += -fno-common -ftree-vectorize -funswitch-loops DEFINES += -std=c99 # Windows diff --git a/src/platform/libretro/libretro.c b/src/platform/libretro/libretro.c index 4c20fc3f3..dae0284c3 100644 --- a/src/platform/libretro/libretro.c +++ b/src/platform/libretro/libretro.c @@ -117,11 +117,10 @@ static bool updateAudioLatency; /* Frame skipping functions */ -static void _retroAudioBuffStatusCallback( - bool active, unsigned occupancy, bool underrun_likely) { +static void _retroAudioBuffStatusCallback(bool active, unsigned occupancy, bool underrunLikely) { retroAudioBuffActive = active; retroAudioBuffOccupancy = occupancy; - retroAudioBuffUnderrun = underrun_likely; + retroAudioBuffUnderrun = underrunLikely; } static void _initFrameskip(void) {