search for: fixed_bfin_h

Displaying 2 results from an estimated 2 matches for "fixed_bfin_h".

Did you mean: fixed_bfin
2010 Mar 25
0
Blackfin inline assembly for fixed math
...ATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ #ifndef FIXED_BFIN_H #define FIXED_BFIN_H #undef MAX16 static inline celt_int16 MAX16(celt_int16 a, celt_int16 b) { celt_int32 res; __asm__ ( "%1 = %1.L (X);\n\t" "%2 = %2.L (X);\n\t" "%0 = MAX(%1,%2);" : "=d" (res) : "%d" (a), &...
2009 Apr 24
2
[PATCH] Blackfin: cleanup astat/cc/hardware loop asm clobbers
...", "L1", "L2", "L3", + "ASTAT" BFIN_HWLOOP0_REGS BFIN_HWLOOP1_REGS ); } diff --git a/libspeex/fixed_bfin.h b/libspeex/fixed_bfin.h index aa26f6a..9eb21e3 100644 --- a/libspeex/fixed_bfin.h +++ b/libspeex/fixed_bfin.h @@ -36,6 +36,8 @@ #ifndef FIXED_BFIN_H #define FIXED_BFIN_H +#include "bfin.h" + #undef PDIV32_16 static inline spx_word16_t PDIV32_16(spx_word32_t a, spx_word16_t b) { @@ -57,7 +59,7 @@ static inline spx_word16_t PDIV32_16(spx_word32_t a, spx_word16_t b) "%0 = R0;\n\t" : "=m" (res)...