Commit fd9e3452 removed -ffast-math from the compile flags. Under some
authorGeorg Chini <georg@chini.tk>
Sun, 21 Jul 2019 13:07:18 +0000 (15:07 +0200)
committerArun Raghavan <arun@arunraghavan.net>
Tue, 23 Jul 2019 20:48:23 +0000 (20:48 +0000)
commit3929798a53c6fbc83b3d54d801c1c07cee4c78f5
treec47efb15c0ca67d275a85354e00a274716e9c1cd
parente896fdc080c0df1eeb0a5b23eb846c3a1e3f2a4a
Commit fd9e3452 removed -ffast-math from the compile flags. Under some
conditions this may lead to massive slowdown of floating point operations
when underflows or denormals are encountered. In particular, this problem
was observed with the soxr resampler after applying
https://gitlab.freedesktop.org/pulseaudio/pulseaudio/merge_requests/120

Therefore this patch adds -ffast-math to the link flags of the pulseaudio
daemon. Linking with -ffast-math adds a procedure set_fast_math() to the
startup code of the daemon. On x86, the procedure sets bit 6 and 15 of the
mxcsr register. When these bits are set, denormals and results of
underflowing operations are truncated to 0.
src/Makefile.am
src/daemon/meson.build