main: hook up cpu detection code

Add CPU detection code to activate the various optimisations.
Move some method definitions around.
Use compatibility macros when we can.
This commit is contained in:
Wim Taymans 2009-08-13 17:12:44 +02:00
parent a83f5524fb
commit 563cb2dea9
4 changed files with 20 additions and 21 deletions

View file

@ -95,6 +95,7 @@
#ifdef HAVE_DBUS
#include <pulsecore/dbus-shared.h>
#endif
#include <pulsecore/cpu-x86.h>
#include "cmdline.h"
#include "cpulimit.h"
@ -821,8 +822,7 @@ int main(int argc, char *argv[]) {
pa_memtrap_install();
pa_volume_func_init_mmx();
pa_volume_func_init_sse();
pa_cpu_init_x86();
pa_assert_se(mainloop = pa_mainloop_new());