diff options
author | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-03-28 21:46:31 +0000 |
---|---|---|
committer | qwell <qwell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-03-28 21:46:31 +0000 |
commit | 667187be08b1c7c155afbda3bcfa377fbfe73955 (patch) | |
tree | 2544ee6d01c4984d0ca9058743e0117be75dd5d9 /codecs | |
parent | ce36a3de76703a6017a6ae8092ed1e3987c88b79 (diff) |
Merged revisions 111857 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
................
r111857 | qwell | 2008-03-28 16:46:02 -0500 (Fri, 28 Mar 2008) | 20 lines
Merged revisions 111856 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r111856 | qwell | 2008-03-28 16:45:35 -0500 (Fri, 28 Mar 2008) | 12 lines
Allow gsm to compile correctly on x86 with gcc4 optimizations.
(closes issue #11243)
Reported by: whiskerp
Patches:
11243-maybe-asm.diff uploaded by qwell (license 4)
Tested by: Seggy (IRC)
Note: While I did write this patch, I would not have found this if fossil
had not reported and fixed issue #12253. A huge thanks to him for helping
to (indirectly) find the problem here.
........
................
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.0@111858 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'codecs')
-rw-r--r-- | codecs/gsm/inc/private.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/codecs/gsm/inc/private.h b/codecs/gsm/inc/private.h index 7021030ac..80ecbc59f 100644 --- a/codecs/gsm/inc/private.h +++ b/codecs/gsm/inc/private.h @@ -105,7 +105,7 @@ static __inline__ int GSM_L_ADD(int a, int b) __asm__ __volatile__( "addl %2,%0; jno 0f; movl $0x7fffffff,%0; adcl $0,%0; 0:" - : "=r" (a) + : "=&r" (a) : "0" (a), "ir" (b) : "cc" ); @@ -116,7 +116,7 @@ static __inline__ short GSM_ADD(short a, short b) { __asm__ __volatile__( "addw %2,%0; jno 0f; movw $0x7fff,%0; adcw $0,%0; 0:" - : "=r" (a) + : "=&r" (a) : "0" (a), "ir" (b) : "cc" ); @@ -127,7 +127,7 @@ static __inline__ short GSM_SUB(short a, short b) { __asm__ __volatile__( "subw %2,%0; jno 0f; movw $0x7fff,%0; adcw $0,%0; 0:" - : "=r" (a) + : "=&r" (a) : "0" (a), "ir" (b) : "cc" ); |