]> git.wh0rd.org - ICEs.git/blobdiff - 287391/svolume_mmx.i
more ices
[ICEs.git] / 287391 / svolume_mmx.i
diff --git a/287391/svolume_mmx.i b/287391/svolume_mmx.i
new file mode 100644 (file)
index 0000000..786f006
--- /dev/null
@@ -0,0 +1,9 @@
+f(short *samples, int *volumes, unsigned channels, unsigned length)
+{
+       long channel, temp;
+       asm volatile("sub  %5, %4"
+               : "+r"(samples), "+r"(volumes), "+r"(length),
+                       "=D"((long) channel), "=&r"(temp)
+               : "rm"((long) channels)
+               : "cc");
+}