From: Brad Midgley <bmidgley@xmission.com>
To: bluez-devel@lists.sourceforge.net
Subject: Re: [Bluez-devel] libsbc optimizing
Date: Fri, 20 May 2005 18:14:42 -0600 [thread overview]
Message-ID: <428E7D72.3030501@xmission.com> (raw)
In-Reply-To: <20050521000412.1499f11e.henryk@ploetzli.ch>
Henryk
> This doesn't particularly aid readability so I'd suggest to keep the old
> code in a comment
ok
> I thought about it: Do you have long integers on that platform or will
> they be slow too? Basically there should be no number greater than 2^16
> anywhere (I'll have to check that, though) and we only need add,
> multiply and shift.
32-bit ints are not costly, but >32 probably are too expensive.
> A naive fixed point implementation would be to use a 32 bit integers and
> shift the original value left 16 bits (multiplying by 2^16) leaving 16
> bits before and 16 bits after the decimal point. Add and Shift will work
> as usual, but for multiply additional 16 bits (e.g. an integer type with
> at least 48 bits) are needed.
uclibc provides an fp emulation library that is already doing a naive
implementation. On a 400mhz pxa255, it works (sort of) for a2dp sink but
only if encoding parameters are set low. It doesn't work for a2dp
source--it only produces some choppy audio and then drops out completely.
maybe we just need to break floats into two ints. using rationals
(numerator/denominator) is what i was thinking when I saw that first fp
division by bits[][].
Brad
-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
next prev parent reply other threads:[~2005-05-21 0:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-18 23:31 [Bluez-devel] libsbc optimizing Brad Midgley
2005-05-20 22:04 ` Henryk Plötz
2005-05-21 0:14 ` Brad Midgley [this message]
2005-05-21 0:28 ` Brad Midgley
2005-05-24 16:55 ` Brad Midgley
2005-05-24 17:10 ` Marcel Holtmann
2005-05-24 17:59 ` Brad Midgley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=428E7D72.3030501@xmission.com \
--to=bmidgley@xmission.com \
--cc=bluez-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.