From 8ca481e347afec3965bf38b36224d06581a5576e Mon Sep 17 00:00:00 2001 From: bnnm Date: Sun, 20 Oct 2019 16:29:49 +0200 Subject: [PATCH] Add fast float math in Makefiles --- cli/Makefile | 2 +- winamp/Makefile | 2 +- xmplay/Makefile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cli/Makefile b/cli/Makefile index 23a93c1f..83a9da59 100644 --- a/cli/Makefile +++ b/cli/Makefile @@ -18,7 +18,7 @@ ifeq ($(TARGET_OS),Windows_NT) CFLAGS += -DWIN32 endif -CFLAGS += -Wall -Werror=format-security -Wdeclaration-after-statement -Wvla -O3 -DVAR_ARRAYS -I../ext_includes $(EXTRA_CFLAGS) +CFLAGS += -ffast-math -O3 -Wall -Werror=format-security -Wdeclaration-after-statement -Wvla -DVAR_ARRAYS -I../ext_includes $(EXTRA_CFLAGS) LDFLAGS += -L../src -L../ext_libs -lvgmstream $(EXTRA_LDFLAGS) -lm TARGET_EXT_LIBS = diff --git a/winamp/Makefile b/winamp/Makefile index d936f5f1..619a29f3 100644 --- a/winamp/Makefile +++ b/winamp/Makefile @@ -15,7 +15,7 @@ endif ### main defs OUTPUT_WINAMP = in_vgmstream.dll -CFLAGS += -Wall -Werror=format-security -Wdeclaration-after-statement -Wvla -O3 -DUSE_ALLOCA -DWIN32 -I../ext_includes $(EXTRA_CFLAGS) +CFLAGS += -ffast-math -O3 -Wall -Werror=format-security -Wdeclaration-after-statement -Wvla -DUSE_ALLOCA -DWIN32 -I../ext_includes $(EXTRA_CFLAGS) LDFLAGS += -L../src -L../ext_libs -lm -lvgmstream $(EXTRA_LDFLAGS) TARGET_EXT_LIBS = diff --git a/xmplay/Makefile b/xmplay/Makefile index 0abd7ae4..be78a3fc 100644 --- a/xmplay/Makefile +++ b/xmplay/Makefile @@ -15,7 +15,7 @@ endif ### main defs OUTPUT_XMPLAY = xmp-vgmstream.dll -CFLAGS += -Wall -Werror=format-security -Wdeclaration-after-statement -Wvla -O3 -DUSE_ALLOCA -DWIN32 -I../ext_includes $(EXTRA_CFLAGS) +CFLAGS += -ffast-math -O3 -Wall -Werror=format-security -Wdeclaration-after-statement -Wvla -DUSE_ALLOCA -DWIN32 -I../ext_includes $(EXTRA_CFLAGS) LDFLAGS += -L../src -L../ext_libs -lm -lvgmstream $(EXTRA_LDFLAGS) TARGET_EXT_LIBS =