Changeset 6129 for pjproject/trunk/third_party/speex/libspeex/fixed_bfin.h
- Timestamp:
- Jan 9, 2020 9:05:50 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/third_party/speex/libspeex/fixed_bfin.h
r2002 r6129 9 9 modification, are permitted provided that the following conditions 10 10 are met: 11 11 12 12 - Redistributions of source code must retain the above copyright 13 13 notice, this list of conditions and the following disclaimer. 14 14 15 15 - Redistributions in binary form must reproduce the above copyright 16 16 notice, this list of conditions and the following disclaimer in the 17 17 documentation and/or other materials provided with the distribution. 18 18 19 19 - Neither the name of the Xiph.org Foundation nor the names of its 20 20 contributors may be used to endorse or promote products derived from 21 21 this software without specific prior written permission. 22 22 23 23 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 24 24 ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT … … 36 36 #ifndef FIXED_BFIN_H 37 37 #define FIXED_BFIN_H 38 39 #include "bfin.h" 38 40 39 41 #undef PDIV32_16 … … 58 60 : "=m" (res) 59 61 : "m" (a), "m" (bb) 60 : "P0", "R0", "R1", " cc");62 : "P0", "R0", "R1", "ASTAT" BFIN_HWLOOP0_REGS); 61 63 return res; 62 64 } … … 67 69 spx_word32_t res, bb; 68 70 bb = b; 69 /* Make the roundinf consistent with the C version 71 /* Make the roundinf consistent with the C version 70 72 (do we need to do that?)*/ 71 if (a<0) 73 if (a<0) 72 74 a += (b-1); 73 75 __asm__ ( … … 85 87 : "=m" (res) 86 88 : "m" (a), "m" (bb) 87 : "P0", "R0", "R1", " cc");89 : "P0", "R0", "R1", "ASTAT" BFIN_HWLOOP0_REGS); 88 90 return res; 89 91 } … … 99 101 : "=d" (res) 100 102 : "%d" (a), "d" (b) 103 : "ASTAT" 101 104 ); 102 105 return res; … … 114 117 : "=&W" (res), "=&d" (b) 115 118 : "d" (a), "1" (b) 116 : "A1" 119 : "A1", "ASTAT" 117 120 ); 118 121 return res; … … 131 134 : "=&W" (res), "=&d" (b) 132 135 : "d" (a), "1" (b), "d" (c) 133 : "A1" 136 : "A1", "ASTAT" 134 137 ); 135 138 return res; … … 148 151 : "=W" (res), "=d" (a), "=d" (b) 149 152 : "1" (a), "2" (b) 150 : "A1" 153 : "A1", "ASTAT" 151 154 ); 152 155 return res; … … 166 169 : "=&W" (res), "=&d" (b) 167 170 : "d" (a), "1" (b), "d" (c) 168 : "A1" 171 : "A1", "ASTAT" 169 172 ); 170 173 return res;
Note: See TracChangeset
for help on using the changeset viewer.