Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Speex on TI C6x, Problem with TI C5x Patch: msg#00069

audio.compression.speex.devel

Subject: Re: Speex on TI C6x, Problem with TI C5x Patch


> Nice call. The culprit is SHRL32. This is not used in many places, and in
> most of those, the operand comes from EXTEND32. The only really suspicious
> instances is in lsp.c (lsp_interpolate):
>
> spx_word16_t tmp = DIV32_16(SHL32(1 + subframe,14),nb_subframes);
> (subframe is an int)
> ...
> I see that your changes include adding an EXTEND32 to the line above. I
> made ONLY this change to the 1.1.8 base that I am working from, and the
> problem is gone.

Good. So I guess you are still having your low MIPS count, right? How
much is that?

> I will go back to using fixed_generic.h for now, but it may still be
> worthwhile to make a custom version that takes advantage of the compiler
> intrinsics, which include 32-bit shifts, 16x16=32 and 32x16=32 MPY, and
> 32+16x16=32 MAC (with and without rounding). The multiply arithmetic all
> returns saturated results. It seems to me that can't hurt. Do you see any
> problem with using saturated MPY and MACs?

Saturation never hurts. That's actually what I would have used if all
platforms supported it (which is at least not the case when ARMv4). If
you send me a file with only the macros you want to override from
fixed_generic.h, I can include it in the tree.

> By the way, the lsp.c change also fixes the TI C54x build, as expected.

What do you mean? Before that, it worked on C55, but not C54?

Jean-Marc

--
Jean-Marc Valin <Jean-Marc.Valin@xxxxxxxxxxxxxx>
Université de Sherbrooke


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
version-control...    qnx.openqnx.dev...    redhat.rhn.user...    ietf.openpgp/20...    mail.mutt.user/...    web.microformat...    java.sync4j.use...    education.ezpro...    user-groups.blu...    solaris.manager...    org.fitug.debat...    technology.erps...    politics.activi...    linux.redhat.fe...    bug-tracking.ma...    xfce.user/2004-...    hams/2004-11/ms...    kde.users.pim/2...    culture.cooking...    freebsd.devel.x...    gnu.m4.adhoc/20...    ngpt.user/2002-...    apple.fink.deve...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation