Copied from http://git.xiph.org/speexdsp.git c470e2e89a6ca75b507437467692cd684b71a526 and modified to compile in the Wireshark source tree.