[pulseaudio-commits] [SCM] PulseAudio Sound Server branch, master, updated. v0.9.16-test6-65-g14a9771

Lennart Poettering gitmailer-noreply at 0pointer.de
Wed Sep 2 15:21:03 PDT 2009


This is an automated email from the git hooks/post-receive script. It was
generated because of a push to the "PulseAudio Sound Server" repository.

The master branch has been updated
      from  26164ff05178db3aec351452b038f9d49fd0c5af (commit)

- Log -----------------------------------------------------------------
14a9771 core: drop unnecessary variable initialization
d088c8f daemon: make use of SIMD optional via config variable to ease debugging
9f4f374 remap_sse: fix inner loop increment on SSE
51423ca remap_sse: reindent macro so that diff to MMX is nicer
-----------------------------------------------------------------------

Summary of changes:
 src/daemon/main.c         |    6 ++++--
 src/pulsecore/remap_sse.c |   42 +++++++++++++++++++++---------------------
 src/pulsecore/sink.c      |    2 +-
 3 files changed, 26 insertions(+), 24 deletions(-)

-----------------------------------------------------------------------

commit 51423cae52333f604de198691d487c7de65cd096
Author: Lennart Poettering <lennart at poettering.net>
Date:   Thu Sep 3 00:13:21 2009 +0200

    remap_sse: reindent macro so that diff to MMX is nicer
    
    Completely useless, but diff -u remap_mmx.c remap_sse.c is much nicer
    this way.

diff --git a/src/pulsecore/remap_sse.c b/src/pulsecore/remap_sse.c
index d600357..fa21c6c 100644
--- a/src/pulsecore/remap_sse.c
+++ b/src/pulsecore/remap_sse.c
@@ -80,25 +80,25 @@
                 " add $2, %1                    \n\t"  \
                 " add $4, %0                    \n\t"
 
-#define MONO_TO_STEREO(s,shift,mask)                    \
-                " mov %4, %2                    \n\t"   \
-                " sar $"#shift", %2             \n\t"   \
-                " cmp $0, %2                    \n\t"   \
-                " je 2f                         \n\t"   \
-                "1:                             \n\t"   \
-                LOAD_SAMPLES                            \
-                UNPACK_SAMPLES(s)                       \
-                STORE_SAMPLES                           \
-                " dec %2                        \n\t"   \
-                " jne 1b                        \n\t"   \
-                "2:                             \n\t"   \
-                " mov %4, %2                    \n\t"   \
-                " and $"#mask", %2              \n\t"   \
-                " je 4f                         \n\t"   \
-                "3:                             \n\t"   \
-                HANDLE_SINGLE_##s()                     \
-                " dec %2                        \n\t"   \
-                " jne 3b                        \n\t"   \
+#define MONO_TO_STEREO(s,shift,mask)                   \
+                " mov %4, %2                    \n\t"  \
+                " sar $"#shift", %2             \n\t"  \
+                " cmp $0, %2                    \n\t"  \
+                " je 2f                         \n\t"  \
+                "1:                             \n\t"  \
+                LOAD_SAMPLES                           \
+                UNPACK_SAMPLES(s)                      \
+                STORE_SAMPLES                          \
+                " dec %2                        \n\t"  \
+                " jne 1b                        \n\t"  \
+                "2:                             \n\t"  \
+                " mov %4, %2                    \n\t"  \
+                " and $"#mask", %2              \n\t"  \
+                " je 4f                         \n\t"  \
+                "3:                             \n\t"  \
+                HANDLE_SINGLE_##s()                    \
+                " dec %2                        \n\t"  \
+                " jne 3b                        \n\t"  \
                 "4:                             \n\t"
 
 static void remap_mono_to_stereo_sse (pa_remap_t *m, void *dst, const void *src, unsigned n) {

commit 9f4f374a19e808ba4f7d4bb04266526bf5ed428b
Author: Lennart Poettering <lennart at poettering.net>
Date:   Thu Sep 3 00:17:28 2009 +0200

    remap_sse: fix inner loop increment on SSE
    
    In each iteration we can process 2^4 S16NE samples and 2^5 F32NE
    samples, that's twice as much as in MMX, hence correct the increments.

diff --git a/src/pulsecore/remap_sse.c b/src/pulsecore/remap_sse.c
index fa21c6c..368a319 100644
--- a/src/pulsecore/remap_sse.c
+++ b/src/pulsecore/remap_sse.c
@@ -108,7 +108,7 @@ static void remap_mono_to_stereo_sse (pa_remap_t *m, void *dst, const void *src,
         case PA_SAMPLE_FLOAT32NE:
         {
             __asm__ __volatile__ (
-                MONO_TO_STEREO(dq,3,7) /* do doubles to quads */
+                MONO_TO_STEREO(dq, 4, 15) /* do doubles to quads */
                 : "+r" (dst), "+r" (src), "=&r" (temp), "=&r" (temp2)
                 : "r" ((pa_reg_x86)n)
                 : "cc"
@@ -118,7 +118,7 @@ static void remap_mono_to_stereo_sse (pa_remap_t *m, void *dst, const void *src,
         case PA_SAMPLE_S16NE:
         {
             __asm__ __volatile__ (
-                MONO_TO_STEREO(wd,4,15) /* do words to doubles */
+                MONO_TO_STEREO(wd, 5, 31) /* do words to doubles */
                 : "+r" (dst), "+r" (src), "=&r" (temp), "=&r" (temp2)
                 : "r" ((pa_reg_x86)n)
                 : "cc"

commit d088c8f05abfae70379d720871f59962a2b3b16b
Author: Lennart Poettering <lennart at poettering.net>
Date:   Thu Sep 3 00:19:03 2009 +0200

    daemon: make use of SIMD optional via config variable to ease debugging

diff --git a/src/daemon/main.c b/src/daemon/main.c
index e22e465..af59ade 100644
--- a/src/daemon/main.c
+++ b/src/daemon/main.c
@@ -828,8 +828,10 @@ int main(int argc, char *argv[]) {
 
     pa_memtrap_install();
 
-    pa_cpu_init_x86();
-    pa_cpu_init_arm();
+    if (!getenv("PULSE_NO_SIMD")) {
+        pa_cpu_init_x86();
+        pa_cpu_init_arm();
+    }
 
     pa_assert_se(mainloop = pa_mainloop_new());
 

commit 14a97716891706d2f4984b0d1da10b354b3042db
Author: Lennart Poettering <lennart at poettering.net>
Date:   Thu Sep 3 00:21:19 2009 +0200

    core: drop unnecessary variable initialization

diff --git a/src/pulsecore/sink.c b/src/pulsecore/sink.c
index b4ecdfc..bda92fc 100644
--- a/src/pulsecore/sink.c
+++ b/src/pulsecore/sink.c
@@ -778,7 +778,7 @@ static unsigned fill_mix_info(pa_sink *s, size_t *length, pa_mix_info *info, uns
 /* Called from IO thread context */
 static void inputs_drop(pa_sink *s, pa_mix_info *info, unsigned n, pa_memchunk *result) {
     pa_sink_input *i;
-    void *state = NULL;
+    void *state;
     unsigned p = 0;
     unsigned n_unreffed = 0;
 

-- 
hooks/post-receive
PulseAudio Sound Server



More information about the pulseaudio-commits mailing list