~ubuntu-branches/ubuntu/raring/mumble/raring

« back to all changes in this revision

Viewing changes to speex/libspeex/cb_search_bfin.h

  • Committer: Bazaar Package Importer
  • Author(s): Thorvald Natvig
  • Date: 2010-01-09 19:28:50 UTC
  • mfrom: (9.1.6 sid)
  • Revision ID: james.westby@ubuntu.com-20100109192850-zs4g5vwrrpd71kob
Tags: 1.2.1-2
Fix upgrade failure when upgrading mumble-server directly from 1.1.x
to 1.2.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* Copyright (C) 2005 Analog Devices */
2
2
/**
3
 
   @author Jean-Marc Valin
 
3
   @author Jean-Marc Valin 
4
4
   @file cb_search_bfin.h
5
5
   @brief Fixed codebook functions (Blackfin version)
6
6
*/
8
8
   Redistribution and use in source and binary forms, with or without
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
25
25
   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
35
35
 
36
36
#include "bfin.h"
37
37
 
38
 
#define OVERRIDE_COMPUTE_WEIGHTED_CODEBOOK
 
38
#define OVERRIDE_COMPUTE_WEIGHTED_CODEBOOK 
39
39
void compute_weighted_codebook(const signed char *shape_cb, const spx_word16_t *r, spx_word16_t *resp, spx_word16_t *resp2, spx_word32_t *E, int shape_cb_size, int subvect_size, char *stack)
40
40
{
41
41
   int i;
74
74
         "[P4] = R1;\n\t"
75
75
         :
76
76
      : "m" (subvect_size), "m" (shape_cb), "m" (r), "m" (resp), "m" (E)
77
 
      : "A0", "P0", "P1", "P2", "P3", "P4", "R0", "R1", "R2", "I0", "I1", "L0",
 
77
      : "A0", "P0", "P1", "P2", "P3", "P4", "R0", "R1", "R2", "I0", "I1", "L0", 
78
78
        "L1", "A0", "A1", "memory", "ASTAT" BFIN_HWLOOP0_REGS BFIN_HWLOOP1_REGS
79
79
      );
80
80
      shape_cb += subvect_size;