yading@10: /* yading@10: * Copyright (c) 2012 yading@10: * MIPS Technologies, Inc., California. yading@10: * yading@10: * Redistribution and use in source and binary forms, with or without yading@10: * modification, are permitted provided that the following conditions yading@10: * are met: yading@10: * 1. Redistributions of source code must retain the above copyright yading@10: * notice, this list of conditions and the following disclaimer. yading@10: * 2. Redistributions in binary form must reproduce the above copyright yading@10: * notice, this list of conditions and the following disclaimer in the yading@10: * documentation and/or other materials provided with the distribution. yading@10: * 3. Neither the name of the MIPS Technologies, Inc., nor the names of its yading@10: * contributors may be used to endorse or promote products derived from yading@10: * this software without specific prior written permission. yading@10: * yading@10: * THIS SOFTWARE IS PROVIDED BY THE MIPS TECHNOLOGIES, INC. ``AS IS'' AND yading@10: * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE yading@10: * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE yading@10: * ARE DISCLAIMED. IN NO EVENT SHALL THE MIPS TECHNOLOGIES, INC. BE LIABLE yading@10: * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL yading@10: * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS yading@10: * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) yading@10: * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT yading@10: * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY yading@10: * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF yading@10: * SUCH DAMAGE. yading@10: * yading@10: * Authors: Branimir Vasic (bvasic@mips.com) yading@10: * Nedeljko Babic (nbabic@mips.com) yading@10: * yading@10: * Various AC-3 DSP Utils optimized for MIPS yading@10: * yading@10: * This file is part of FFmpeg. yading@10: * yading@10: * FFmpeg is free software; you can redistribute it and/or yading@10: * modify it under the terms of the GNU Lesser General Public yading@10: * License as published by the Free Software Foundation; either yading@10: * version 2.1 of the License, or (at your option) any later version. yading@10: * yading@10: * FFmpeg is distributed in the hope that it will be useful, yading@10: * but WITHOUT ANY WARRANTY; without even the implied warranty of yading@10: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU yading@10: * Lesser General Public License for more details. yading@10: * yading@10: * You should have received a copy of the GNU Lesser General Public yading@10: * License along with FFmpeg; if not, write to the Free Software yading@10: * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA yading@10: */ yading@10: yading@10: /** yading@10: * @file yading@10: * Reference: libavcodec/ac3dsp.c yading@10: */ yading@10: yading@10: #include "config.h" yading@10: #include "libavcodec/ac3dsp.h" yading@10: #include "libavcodec/ac3.h" yading@10: yading@10: yading@10: #if HAVE_INLINE_ASM yading@10: #if HAVE_MIPSDSPR1 yading@10: static void ac3_bit_alloc_calc_bap_mips(int16_t *mask, int16_t *psd, yading@10: int start, int end, yading@10: int snr_offset, int floor, yading@10: const uint8_t *bap_tab, uint8_t *bap) yading@10: { yading@10: int band, band_end, cond; yading@10: int m, address1, address2; yading@10: int16_t *psd1, *psd_end; yading@10: uint8_t *bap1; yading@10: yading@10: if (snr_offset == -960) { yading@10: memset(bap, 0, AC3_MAX_COEFS); yading@10: return; yading@10: } yading@10: yading@10: psd1 = &psd[start]; yading@10: bap1 = &bap[start]; yading@10: band = ff_ac3_bin_to_band_tab[start]; yading@10: yading@10: do { yading@10: m = (FFMAX(mask[band] - snr_offset - floor, 0) & 0x1FE0) + floor; yading@10: band_end = ff_ac3_band_start_tab[++band]; yading@10: band_end = FFMIN(band_end, end); yading@10: psd_end = psd + band_end - 1; yading@10: yading@10: __asm__ volatile ( yading@10: "slt %[cond], %[psd1], %[psd_end] \n\t" yading@10: "beqz %[cond], 1f \n\t" yading@10: "2: \n\t" yading@10: "lh %[address1], 0(%[psd1]) \n\t" yading@10: "lh %[address2], 2(%[psd1]) \n\t" yading@10: "addiu %[psd1], %[psd1], 4 \n\t" yading@10: "subu %[address1], %[address1], %[m] \n\t" yading@10: "sra %[address1], %[address1], 5 \n\t" yading@10: "addiu %[address1], %[address1], -32 \n\t" yading@10: "shll_s.w %[address1], %[address1], 26 \n\t" yading@10: "subu %[address2], %[address2], %[m] \n\t" yading@10: "sra %[address2], %[address2], 5 \n\t" yading@10: "sra %[address1], %[address1], 26 \n\t" yading@10: "addiu %[address1], %[address1], 32 \n\t" yading@10: "lbux %[address1], %[address1](%[bap_tab]) \n\t" yading@10: "addiu %[address2], %[address2], -32 \n\t" yading@10: "shll_s.w %[address2], %[address2], 26 \n\t" yading@10: "sb %[address1], 0(%[bap1]) \n\t" yading@10: "slt %[cond], %[psd1], %[psd_end] \n\t" yading@10: "sra %[address2], %[address2], 26 \n\t" yading@10: "addiu %[address2], %[address2], 32 \n\t" yading@10: "lbux %[address2], %[address2](%[bap_tab]) \n\t" yading@10: "sb %[address2], 1(%[bap1]) \n\t" yading@10: "addiu %[bap1], %[bap1], 2 \n\t" yading@10: "bnez %[cond], 2b \n\t" yading@10: "addiu %[psd_end], %[psd_end], 2 \n\t" yading@10: "slt %[cond], %[psd1], %[psd_end] \n\t" yading@10: "beqz %[cond], 3f \n\t" yading@10: "1: \n\t" yading@10: "lh %[address1], 0(%[psd1]) \n\t" yading@10: "addiu %[psd1], %[psd1], 2 \n\t" yading@10: "subu %[address1], %[address1], %[m] \n\t" yading@10: "sra %[address1], %[address1], 5 \n\t" yading@10: "addiu %[address1], %[address1], -32 \n\t" yading@10: "shll_s.w %[address1], %[address1], 26 \n\t" yading@10: "sra %[address1], %[address1], 26 \n\t" yading@10: "addiu %[address1], %[address1], 32 \n\t" yading@10: "lbux %[address1], %[address1](%[bap_tab]) \n\t" yading@10: "sb %[address1], 0(%[bap1]) \n\t" yading@10: "addiu %[bap1], %[bap1], 1 \n\t" yading@10: "3: \n\t" yading@10: yading@10: : [address1]"=&r"(address1), [address2]"=&r"(address2), yading@10: [cond]"=&r"(cond), [bap1]"+r"(bap1), yading@10: [psd1]"+r"(psd1), [psd_end]"+r"(psd_end) yading@10: : [m]"r"(m), [bap_tab]"r"(bap_tab) yading@10: : "memory" yading@10: ); yading@10: } while (end > band_end); yading@10: } yading@10: yading@10: static void ac3_update_bap_counts_mips(uint16_t mant_cnt[16], uint8_t *bap, yading@10: int len) yading@10: { yading@10: int temp0, temp1, temp2, temp3, temp4, temp5, temp6, temp7; yading@10: yading@10: __asm__ volatile ( yading@10: "andi %[temp3], %[len], 3 \n\t" yading@10: "addu %[temp2], %[bap], %[len] \n\t" yading@10: "addu %[temp4], %[bap], %[temp3] \n\t" yading@10: "beq %[temp2], %[temp4], 4f \n\t" yading@10: "1: \n\t" yading@10: "lbu %[temp0], -1(%[temp2]) \n\t" yading@10: "lbu %[temp5], -2(%[temp2]) \n\t" yading@10: "lbu %[temp6], -3(%[temp2]) \n\t" yading@10: "sll %[temp0], %[temp0], 1 \n\t" yading@10: "addu %[temp0], %[mant_cnt], %[temp0] \n\t" yading@10: "sll %[temp5], %[temp5], 1 \n\t" yading@10: "addu %[temp5], %[mant_cnt], %[temp5] \n\t" yading@10: "lhu %[temp1], 0(%[temp0]) \n\t" yading@10: "sll %[temp6], %[temp6], 1 \n\t" yading@10: "addu %[temp6], %[mant_cnt], %[temp6] \n\t" yading@10: "addiu %[temp1], %[temp1], 1 \n\t" yading@10: "sh %[temp1], 0(%[temp0]) \n\t" yading@10: "lhu %[temp1], 0(%[temp5]) \n\t" yading@10: "lbu %[temp7], -4(%[temp2]) \n\t" yading@10: "addiu %[temp2], %[temp2], -4 \n\t" yading@10: "addiu %[temp1], %[temp1], 1 \n\t" yading@10: "sh %[temp1], 0(%[temp5]) \n\t" yading@10: "lhu %[temp1], 0(%[temp6]) \n\t" yading@10: "sll %[temp7], %[temp7], 1 \n\t" yading@10: "addu %[temp7], %[mant_cnt], %[temp7] \n\t" yading@10: "addiu %[temp1], %[temp1],1 \n\t" yading@10: "sh %[temp1], 0(%[temp6]) \n\t" yading@10: "lhu %[temp1], 0(%[temp7]) \n\t" yading@10: "addiu %[temp1], %[temp1], 1 \n\t" yading@10: "sh %[temp1], 0(%[temp7]) \n\t" yading@10: "bne %[temp2], %[temp4], 1b \n\t" yading@10: "4: \n\t" yading@10: "beqz %[temp3], 2f \n\t" yading@10: "3: \n\t" yading@10: "addiu %[temp3], %[temp3], -1 \n\t" yading@10: "lbu %[temp0], -1(%[temp2]) \n\t" yading@10: "addiu %[temp2], %[temp2], -1 \n\t" yading@10: "sll %[temp0], %[temp0], 1 \n\t" yading@10: "addu %[temp0], %[mant_cnt], %[temp0] \n\t" yading@10: "lhu %[temp1], 0(%[temp0]) \n\t" yading@10: "addiu %[temp1], %[temp1], 1 \n\t" yading@10: "sh %[temp1], 0(%[temp0]) \n\t" yading@10: "bgtz %[temp3], 3b \n\t" yading@10: "2: \n\t" yading@10: yading@10: : [temp0] "=&r" (temp0), [temp1] "=&r" (temp1), yading@10: [temp2] "=&r" (temp2), [temp3] "=&r" (temp3), yading@10: [temp4] "=&r" (temp4), [temp5] "=&r" (temp5), yading@10: [temp6] "=&r" (temp6), [temp7] "=&r" (temp7) yading@10: : [len] "r" (len), [bap] "r" (bap), yading@10: [mant_cnt] "r" (mant_cnt) yading@10: : "memory" yading@10: ); yading@10: } yading@10: #endif yading@10: yading@10: #if HAVE_MIPSFPU && HAVE_MIPS32R2 yading@10: static void float_to_fixed24_mips(int32_t *dst, const float *src, unsigned int len) yading@10: { yading@10: const float scale = 1 << 24; yading@10: float src0, src1, src2, src3, src4, src5, src6, src7; yading@10: int temp0, temp1, temp2, temp3, temp4, temp5, temp6, temp7; yading@10: yading@10: do { yading@10: __asm__ volatile ( yading@10: "lwc1 %[src0], 0(%[src]) \n\t" yading@10: "lwc1 %[src1], 4(%[src]) \n\t" yading@10: "lwc1 %[src2], 8(%[src]) \n\t" yading@10: "lwc1 %[src3], 12(%[src]) \n\t" yading@10: "lwc1 %[src4], 16(%[src]) \n\t" yading@10: "lwc1 %[src5], 20(%[src]) \n\t" yading@10: "lwc1 %[src6], 24(%[src]) \n\t" yading@10: "lwc1 %[src7], 28(%[src]) \n\t" yading@10: "mul.s %[src0], %[src0], %[scale] \n\t" yading@10: "mul.s %[src1], %[src1], %[scale] \n\t" yading@10: "mul.s %[src2], %[src2], %[scale] \n\t" yading@10: "mul.s %[src3], %[src3], %[scale] \n\t" yading@10: "mul.s %[src4], %[src4], %[scale] \n\t" yading@10: "mul.s %[src5], %[src5], %[scale] \n\t" yading@10: "mul.s %[src6], %[src6], %[scale] \n\t" yading@10: "mul.s %[src7], %[src7], %[scale] \n\t" yading@10: "cvt.w.s %[src0], %[src0] \n\t" yading@10: "cvt.w.s %[src1], %[src1] \n\t" yading@10: "cvt.w.s %[src2], %[src2] \n\t" yading@10: "cvt.w.s %[src3], %[src3] \n\t" yading@10: "cvt.w.s %[src4], %[src4] \n\t" yading@10: "cvt.w.s %[src5], %[src5] \n\t" yading@10: "cvt.w.s %[src6], %[src6] \n\t" yading@10: "cvt.w.s %[src7], %[src7] \n\t" yading@10: "mfc1 %[temp0], %[src0] \n\t" yading@10: "mfc1 %[temp1], %[src1] \n\t" yading@10: "mfc1 %[temp2], %[src2] \n\t" yading@10: "mfc1 %[temp3], %[src3] \n\t" yading@10: "mfc1 %[temp4], %[src4] \n\t" yading@10: "mfc1 %[temp5], %[src5] \n\t" yading@10: "mfc1 %[temp6], %[src6] \n\t" yading@10: "mfc1 %[temp7], %[src7] \n\t" yading@10: "sw %[temp0], 0(%[dst]) \n\t" yading@10: "sw %[temp1], 4(%[dst]) \n\t" yading@10: "sw %[temp2], 8(%[dst]) \n\t" yading@10: "sw %[temp3], 12(%[dst]) \n\t" yading@10: "sw %[temp4], 16(%[dst]) \n\t" yading@10: "sw %[temp5], 20(%[dst]) \n\t" yading@10: "sw %[temp6], 24(%[dst]) \n\t" yading@10: "sw %[temp7], 28(%[dst]) \n\t" yading@10: yading@10: : [dst] "+r" (dst), [src] "+r" (src), yading@10: [src0] "=&f" (src0), [src1] "=&f" (src1), yading@10: [src2] "=&f" (src2), [src3] "=&f" (src3), yading@10: [src4] "=&f" (src4), [src5] "=&f" (src5), yading@10: [src6] "=&f" (src6), [src7] "=&f" (src7), yading@10: [temp0] "=r" (temp0), [temp1] "=r" (temp1), yading@10: [temp2] "=r" (temp2), [temp3] "=r" (temp3), yading@10: [temp4] "=r" (temp4), [temp5] "=r" (temp5), yading@10: [temp6] "=r" (temp6), [temp7] "=r" (temp7) yading@10: : [scale] "f" (scale) yading@10: : "memory" yading@10: ); yading@10: src = src + 8; yading@10: dst = dst + 8; yading@10: len -= 8; yading@10: } while (len > 0); yading@10: } yading@10: yading@10: static void ac3_downmix_mips(float **samples, float (*matrix)[2], yading@10: int out_ch, int in_ch, int len) yading@10: { yading@10: int i, j, i1, i2, i3; yading@10: float v0, v1, v2, v3; yading@10: float v4, v5, v6, v7; yading@10: float samples0, samples1, samples2, samples3, matrix_j, matrix_j2; yading@10: float *samples_p,*matrix_p, **samples_x, **samples_end, **samples_sw; yading@10: yading@10: __asm__ volatile( yading@10: ".set push \n\t" yading@10: ".set noreorder \n\t" yading@10: yading@10: "li %[i1], 2 \n\t" yading@10: "sll %[len], 2 \n\t" yading@10: "move %[i], $zero \n\t" yading@10: "sll %[j], %[in_ch], 2 \n\t" yading@10: yading@10: "bne %[out_ch], %[i1], 3f \n\t" // if (out_ch == 2) yading@10: " li %[i2], 1 \n\t" yading@10: yading@10: "2: \n\t" // start of the for loop (for (i = 0; i < len; i+=4)) yading@10: "move %[matrix_p], %[matrix] \n\t" yading@10: "move %[samples_x], %[samples] \n\t" yading@10: "mtc1 $zero, %[v0] \n\t" yading@10: "mtc1 $zero, %[v1] \n\t" yading@10: "mtc1 $zero, %[v2] \n\t" yading@10: "mtc1 $zero, %[v3] \n\t" yading@10: "mtc1 $zero, %[v4] \n\t" yading@10: "mtc1 $zero, %[v5] \n\t" yading@10: "mtc1 $zero, %[v6] \n\t" yading@10: "mtc1 $zero, %[v7] \n\t" yading@10: "addiu %[i1], %[i], 4 \n\t" yading@10: "addiu %[i2], %[i], 8 \n\t" yading@10: "lw %[samples_p], 0(%[samples_x]) \n\t" yading@10: "addiu %[i3], %[i], 12 \n\t" yading@10: "addu %[samples_end], %[samples_x], %[j] \n\t" yading@10: "move %[samples_sw], %[samples_p] \n\t" yading@10: yading@10: "1: \n\t" // start of the inner for loop (for (j = 0; j < in_ch; j++)) yading@10: "lwc1 %[matrix_j], 0(%[matrix_p]) \n\t" yading@10: "lwc1 %[matrix_j2], 4(%[matrix_p]) \n\t" yading@10: "lwxc1 %[samples0], %[i](%[samples_p]) \n\t" yading@10: "lwxc1 %[samples1], %[i1](%[samples_p]) \n\t" yading@10: "lwxc1 %[samples2], %[i2](%[samples_p]) \n\t" yading@10: "lwxc1 %[samples3], %[i3](%[samples_p]) \n\t" yading@10: "addiu %[matrix_p], 8 \n\t" yading@10: "addiu %[samples_x], 4 \n\t" yading@10: "madd.s %[v0], %[v0], %[samples0], %[matrix_j] \n\t" yading@10: "madd.s %[v1], %[v1], %[samples1], %[matrix_j] \n\t" yading@10: "madd.s %[v2], %[v2], %[samples2], %[matrix_j] \n\t" yading@10: "madd.s %[v3], %[v3], %[samples3], %[matrix_j] \n\t" yading@10: "madd.s %[v4], %[v4], %[samples0], %[matrix_j2]\n\t" yading@10: "madd.s %[v5], %[v5], %[samples1], %[matrix_j2]\n\t" yading@10: "madd.s %[v6], %[v6], %[samples2], %[matrix_j2]\n\t" yading@10: "madd.s %[v7], %[v7], %[samples3], %[matrix_j2]\n\t" yading@10: "bne %[samples_x], %[samples_end], 1b \n\t" yading@10: " lw %[samples_p], 0(%[samples_x]) \n\t" yading@10: yading@10: "lw %[samples_p], 4(%[samples]) \n\t" yading@10: "swxc1 %[v0], %[i](%[samples_sw]) \n\t" yading@10: "swxc1 %[v1], %[i1](%[samples_sw]) \n\t" yading@10: "swxc1 %[v2], %[i2](%[samples_sw]) \n\t" yading@10: "swxc1 %[v3], %[i3](%[samples_sw]) \n\t" yading@10: "swxc1 %[v4], %[i](%[samples_p]) \n\t" yading@10: "addiu %[i], 16 \n\t" yading@10: "swxc1 %[v5], %[i1](%[samples_p]) \n\t" yading@10: "swxc1 %[v6], %[i2](%[samples_p]) \n\t" yading@10: "bne %[i], %[len], 2b \n\t" yading@10: " swxc1 %[v7], %[i3](%[samples_p]) \n\t" yading@10: yading@10: "3: \n\t" yading@10: "bne %[out_ch], %[i2], 6f \n\t" // if (out_ch == 1) yading@10: " nop \n\t" yading@10: yading@10: "5: \n\t" // start of the outer for loop (for (i = 0; i < len; i+=4)) yading@10: "move %[matrix_p], %[matrix] \n\t" yading@10: "move %[samples_x], %[samples] \n\t" yading@10: "mtc1 $zero, %[v0] \n\t" yading@10: "mtc1 $zero, %[v1] \n\t" yading@10: "mtc1 $zero, %[v2] \n\t" yading@10: "mtc1 $zero, %[v3] \n\t" yading@10: "addiu %[i1], %[i], 4 \n\t" yading@10: "addiu %[i2], %[i], 8 \n\t" yading@10: "lw %[samples_p], 0(%[samples_x]) \n\t" yading@10: "addiu %[i3], %[i], 12 \n\t" yading@10: "addu %[samples_end], %[samples_x], %[j] \n\t" yading@10: "move %[samples_sw], %[samples_p] \n\t" yading@10: yading@10: "4: \n\t" // start of the inner for loop (for (j = 0; j < in_ch; j++)) yading@10: "lwc1 %[matrix_j], 0(%[matrix_p]) \n\t" yading@10: "lwxc1 %[samples0], %[i](%[samples_p]) \n\t" yading@10: "lwxc1 %[samples1], %[i1](%[samples_p]) \n\t" yading@10: "lwxc1 %[samples2], %[i2](%[samples_p]) \n\t" yading@10: "lwxc1 %[samples3], %[i3](%[samples_p]) \n\t" yading@10: "addiu %[matrix_p], 8 \n\t" yading@10: "addiu %[samples_x], 4 \n\t" yading@10: "madd.s %[v0], %[v0], %[samples0], %[matrix_j] \n\t" yading@10: "madd.s %[v1], %[v1], %[samples1], %[matrix_j] \n\t" yading@10: "madd.s %[v2], %[v2], %[samples2], %[matrix_j] \n\t" yading@10: "madd.s %[v3], %[v3], %[samples3], %[matrix_j] \n\t" yading@10: "bne %[samples_x], %[samples_end], 4b \n\t" yading@10: " lw %[samples_p], 0(%[samples_x]) \n\t" yading@10: yading@10: "swxc1 %[v0], %[i](%[samples_sw]) \n\t" yading@10: "addiu %[i], 16 \n\t" yading@10: "swxc1 %[v1], %[i1](%[samples_sw]) \n\t" yading@10: "swxc1 %[v2], %[i2](%[samples_sw]) \n\t" yading@10: "bne %[i], %[len], 5b \n\t" yading@10: " swxc1 %[v3], %[i3](%[samples_sw]) \n\t" yading@10: "6: \n\t" yading@10: yading@10: ".set pop" yading@10: :[samples_p]"=&r"(samples_p), [matrix_j]"=&f"(matrix_j), [matrix_j2]"=&f"(matrix_j2), yading@10: [samples0]"=&f"(samples0), [samples1]"=&f"(samples1), yading@10: [samples2]"=&f"(samples2), [samples3]"=&f"(samples3), yading@10: [v0]"=&f"(v0), [v1]"=&f"(v1), [v2]"=&f"(v2), [v3]"=&f"(v3), yading@10: [v4]"=&f"(v4), [v5]"=&f"(v5), [v6]"=&f"(v6), [v7]"=&f"(v7), yading@10: [samples_x]"=&r"(samples_x), [matrix_p]"=&r"(matrix_p), yading@10: [samples_end]"=&r"(samples_end), [samples_sw]"=&r"(samples_sw), yading@10: [i1]"=&r"(i1), [i2]"=&r"(i2), [i3]"=&r"(i3), [i]"=&r"(i), yading@10: [j]"=&r"(j), [len]"+r"(len) yading@10: :[samples]"r"(samples), [matrix]"r"(matrix), yading@10: [in_ch]"r"(in_ch), [out_ch]"r"(out_ch) yading@10: :"memory" yading@10: ); yading@10: } yading@10: #endif yading@10: #endif /* HAVE_INLINE_ASM */ yading@10: yading@10: void ff_ac3dsp_init_mips(AC3DSPContext *c, int bit_exact) { yading@10: #if HAVE_INLINE_ASM yading@10: #if HAVE_MIPSDSPR1 yading@10: c->bit_alloc_calc_bap = ac3_bit_alloc_calc_bap_mips; yading@10: c->update_bap_counts = ac3_update_bap_counts_mips; yading@10: #endif yading@10: #if HAVE_MIPSFPU && HAVE_MIPS32R2 yading@10: c->float_to_fixed24 = float_to_fixed24_mips; yading@10: c->downmix = ac3_downmix_mips; yading@10: #endif yading@10: #endif yading@10: yading@10: }