[MPlayer-dev-eng] [PATCH] Enable FTZ and DAZ w/ -ffast-math

Zuxy Meng zuxy.meng at gmail.com
Mon Feb 2 14:33:08 CET 2009


Hi,

GCC does a trick to enable FTZ (flush to zero) and DAZ (denormals are
zeroes) when either -ffast-math or -funsafe-math-optimizations is used
by linking crtfastmath.o into the executive. It requires the presence
of one of the options in the final linking stage.

-- 
Zuxy
Beauty is truth,
While truth is beauty.
PGP KeyID: E8555ED6
-------------- next part --------------
Index: Makefile
===================================================================
--- Makefile	??? 23339?
+++ Makefile	??????
@@ -223,10 +223,10 @@
 	$(MAKE) -C libmenu
 
 mplayer$(EXESUF): $(MPLAYER_DEPS)
-	$(CC) -o $@ $^ $(LDFLAGS_MPLAYER)
+	$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS_MPLAYER)
 
 mencoder$(EXESUF): $(MENCODER_DEPS)
-	$(CC) -o $@ $^ $(LDFLAGS_MENCODER)
+	$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS_MENCODER)
 
 codec-cfg$(EXESUF): codec-cfg.c codec-cfg.h help_mp.h
 	$(HOST_CC) -I. -DCODECS2HTML $< -o $@


More information about the MPlayer-dev-eng mailing list