* [Bluez-devel] 32-bit sbc now in CVS
@ 2006-01-29 6:30 Brad Midgley
0 siblings, 0 replies; only message in thread
From: Brad Midgley @ 2006-01-29 6:30 UTC (permalink / raw)
To: bluez-devel
guys
FYI, I worked through the scaling to get 32-bit decoding to work. I
committed this and made the 32-bit encoder/decoder the default when you
enable fixed-point.
It turns out that we are counting on undefined compiler behavior in
several places.
signed_var >> x
Is not necessarily defined to perform an arithmetic shift. It *could* be
replaced by:
signed_var / (1 << x)
And while this will always produce the correct value, we can't count on
it being performed optimally (ie, it could really generate a heavyweight
division op)
I'm inclined to leave it as-is. Maybe there's an autoconf test to
confirm this compiler behavior, boiling down to:
ASSERT(-2 >> 1 == -1)
Brad
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-01-29 6:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-29 6:30 [Bluez-devel] 32-bit sbc now in CVS Brad Midgley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).