Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/speex.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>2008-02-02 08:29:40 +0300
committerjm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800>2008-02-02 08:29:40 +0300
commite33e0f4c02718812baa4b780333b911aae6af67a (patch)
treeebfedf535b5bf60312566439d560cc67fefabe05 /libspeex/fixed_generic.h
parentc0924f60f3dc44116f08ae2a1db64802e9390a58 (diff)
Fix for 1<<shift on TI C5x for shift>15 (thanks to Jim Crichton)
git-svn-id: http://svn.xiph.org/trunk/speex@14447 0101bb08-14d6-0310-b084-bc0e0c8e3800
Diffstat (limited to 'libspeex/fixed_generic.h')
-rw-r--r--libspeex/fixed_generic.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libspeex/fixed_generic.h b/libspeex/fixed_generic.h
index c9b2a0b..3fb096e 100644
--- a/libspeex/fixed_generic.h
+++ b/libspeex/fixed_generic.h
@@ -54,7 +54,7 @@
#define SHR(a,shift) ((a) >> (shift))
#define SHL(a,shift) ((spx_word32_t)(a) << (shift))
-#define PSHR(a,shift) (SHR((a)+((1<<((shift))>>1)),shift))
+#define PSHR(a,shift) (SHR((a)+((EXTEND32(1)<<((shift))>>1)),shift))
#define SATURATE(x,a) (((x)>(a) ? (a) : (x)<-(a) ? -(a) : (x)))