[xiph-commits] r11909 - trunk/speex/libspeex

jm at svn.xiph.org jm at svn.xiph.org
Tue Oct 10 07:41:57 PDT 2006


Author: jm
Date: 2006-10-10 07:41:51 -0700 (Tue, 10 Oct 2006)
New Revision: 11909

Modified:
   trunk/speex/libspeex/pseudofloat.h
Log:
Fixed a bug on 16-bit platforms (thanks Jim)


Modified: trunk/speex/libspeex/pseudofloat.h
===================================================================
--- trunk/speex/libspeex/pseudofloat.h	2006-10-10 14:02:59 UTC (rev 11908)
+++ trunk/speex/libspeex/pseudofloat.h	2006-10-10 14:41:51 UTC (rev 11909)
@@ -347,7 +347,7 @@
 {
    spx_float_t r;
    spx_int32_t m;
-   m = a.m << 14;
+   m = SHL32(EXTEND32(a.m), 14);
    r.e = a.e - 14;
    if (r.e & 1)
    {



More information about the commits mailing list