Ignore:
Timestamp:
Jan 9, 2020 9:05:50 AM (4 years ago)
Author:
ming
Message:

Closed #589: Update Speex AEC to the latest version to get multichannel EC

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/third_party/speex/libspeex/fixed_bfin.h

    r2002 r6129  
    99   modification, are permitted provided that the following conditions 
    1010   are met: 
    11     
     11 
    1212   - Redistributions of source code must retain the above copyright 
    1313   notice, this list of conditions and the following disclaimer. 
    14     
     14 
    1515   - Redistributions in binary form must reproduce the above copyright 
    1616   notice, this list of conditions and the following disclaimer in the 
    1717   documentation and/or other materials provided with the distribution. 
    18     
     18 
    1919   - Neither the name of the Xiph.org Foundation nor the names of its 
    2020   contributors may be used to endorse or promote products derived from 
    2121   this software without specific prior written permission. 
    22     
     22 
    2323   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 
    2424   ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 
     
    3636#ifndef FIXED_BFIN_H 
    3737#define FIXED_BFIN_H 
     38 
     39#include "bfin.h" 
    3840 
    3941#undef PDIV32_16 
     
    5860   : "=m" (res) 
    5961   : "m" (a), "m" (bb) 
    60    : "P0", "R0", "R1", "cc"); 
     62   : "P0", "R0", "R1", "ASTAT" BFIN_HWLOOP0_REGS); 
    6163   return res; 
    6264} 
     
    6769   spx_word32_t res, bb; 
    6870   bb = b; 
    69    /* Make the roundinf consistent with the C version  
     71   /* Make the roundinf consistent with the C version 
    7072      (do we need to do that?)*/ 
    71    if (a<0)  
     73   if (a<0) 
    7274      a += (b-1); 
    7375   __asm__  ( 
     
    8587   : "=m" (res) 
    8688   : "m" (a), "m" (bb) 
    87    : "P0", "R0", "R1", "cc"); 
     89   : "P0", "R0", "R1", "ASTAT" BFIN_HWLOOP0_REGS); 
    8890   return res; 
    8991} 
     
    99101   : "=d" (res) 
    100102   : "%d" (a), "d" (b) 
     103   : "ASTAT" 
    101104   ); 
    102105   return res; 
     
    114117   : "=&W" (res), "=&d" (b) 
    115118   : "d" (a), "1" (b) 
    116    : "A1" 
     119   : "A1", "ASTAT" 
    117120   ); 
    118121   return res; 
     
    131134   : "=&W" (res), "=&d" (b) 
    132135   : "d" (a), "1" (b), "d" (c) 
    133    : "A1" 
     136   : "A1", "ASTAT" 
    134137         ); 
    135138   return res; 
     
    148151   : "=W" (res), "=d" (a), "=d" (b) 
    149152   : "1" (a), "2" (b) 
    150    : "A1" 
     153   : "A1", "ASTAT" 
    151154         ); 
    152155   return res; 
     
    166169   : "=&W" (res), "=&d" (b) 
    167170   : "d" (a), "1" (b), "d" (c) 
    168    : "A1" 
     171   : "A1", "ASTAT" 
    169172         ); 
    170173   return res; 
Note: See TracChangeset for help on using the changeset viewer.