vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Wed Mar 7 18:14:26 2012 +0200| [a71d33159c47a752acc753ebddf1f7ef13790a07] | committer: Rémi Denis-Courmont
Enable some FPU optimizations via standard pragma by default If GCC -ffast-math is not supported, some floating point optimizations are still possible through more standard means: "FP_CONTRACT on" is a subset of -funsafe-math-optimizations. "FENV_ACCESS off" corresponds to -frounding-math. "CX_LIMITED_RANGE on" corresponds to -fcx-limited-range, but is not included as VLC does not use complex numbers anywhere yet. > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a71d33159c47a752acc753ebddf1f7ef13790a07 --- configure.ac | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/configure.ac b/configure.ac index cc1500e..5f99552 100644 --- a/configure.ac +++ b/configure.ac @@ -964,6 +964,12 @@ AS_IF([test "${enable_optimizations}" != "no"], [ ]) ]) AS_IF([test "${ac_cv_c_fast_math}" = "no"], [VLC_RESTORE_FLAGS]) + AH_BOTTOM([ +#ifndef __FAST_MATH__ +# pragma STDC FENV_ACCESS OFF +# pragma STDC FP_CONTRACT ON +#endif +]) dnl Check for -funroll-loops VLC_SAVE_FLAGS _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
