~diwic/ubuntu/lucid/pulseaudio/bugfixes

« back to all changes in this revision

Viewing changes to src/pulsecore/sconv_sse.c

  • Committer: Bazaar Package Importer
  • Author(s): Luke Yelavich
  • Date: 2009-09-11 09:24:39 UTC
  • mto: This revision was merged to the branch mainline in revision 85.
  • Revision ID: james.westby@ubuntu.com-20090911092439-2tyrf02temme156h
Tags: upstream-0.9.16
ImportĀ upstreamĀ versionĀ 0.9.16

Show diffs side-by-side

added added

removed removed

Lines of Context:
218
218
 
219
219
void pa_convert_func_init_sse (pa_cpu_x86_flag_t flags) {
220
220
#if defined (__i386__) || defined (__amd64__)
221
 
    pa_log_info("Initialising SSE optimized conversions.");
222
221
 
223
222
#ifdef RUN_TEST
224
223
    run_test ();
225
224
#endif
226
225
 
227
 
    if (flags & PA_CPU_X86_SSE2)
228
 
      pa_set_convert_from_float32ne_function (PA_SAMPLE_S16LE, (pa_convert_func_t) pa_sconv_s16le_from_f32ne_sse2);
229
 
    else
230
 
      pa_set_convert_from_float32ne_function (PA_SAMPLE_S16LE, (pa_convert_func_t) pa_sconv_s16le_from_f32ne_sse);
 
226
    if (flags & PA_CPU_X86_SSE2) {
 
227
        pa_log_info("Initialising SSE2 optimized conversions.");
 
228
        pa_set_convert_from_float32ne_function (PA_SAMPLE_S16LE, (pa_convert_func_t) pa_sconv_s16le_from_f32ne_sse2);
 
229
    } else {
 
230
        pa_log_info("Initialising SSE optimized conversions.");
 
231
        pa_set_convert_from_float32ne_function (PA_SAMPLE_S16LE, (pa_convert_func_t) pa_sconv_s16le_from_f32ne_sse);
 
232
    }
231
233
 
232
234
#endif /* defined (__i386__) || defined (__amd64__) */
233
235
}