X-Git-Url: https://git.wh0rd.org/?p=ICEs.git;a=blobdiff_plain;f=287391%2Fsvolume_mmx.i;fp=287391%2Fsvolume_mmx.i;h=786f00617392d406f5aa28ad3d5bcd342e774094;hp=0000000000000000000000000000000000000000;hb=81f80d8c1c9898ae1c26534a3287a47220390f5c;hpb=45516216fc552c838e650d868214d867027a64f6 diff --git a/287391/svolume_mmx.i b/287391/svolume_mmx.i new file mode 100644 index 0000000..786f006 --- /dev/null +++ b/287391/svolume_mmx.i @@ -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"); +}