[Tremor] 64 bit math
Monty
xiphmont at xiph.org
Wed Dec 1 00:35:56 PST 2004
On Mon, Nov 29, 2004 at 03:56:23PM +0100, Niklas Barsk wrote:
> Hi
>
> I am currently trying to port Tremor (nobyte lowmem branch) to a
> platform that does not have any 64 bit integer datatype (in fact it
> only has 24 and 48 bit datatypes). So I am running it in low accuracy
> mode to avoid the most of the 64 bit
> math, but there still are some 64 bit datatypes in use (granulepos and such).
The only strictly 64 bit math is in granulepos handling.
> Now to my question, is the 64 bit precision really needed or can the
> 48 bit long be used instead for the ogg_int64_t datatype?
If you're doing anything more complicated than directly playing back a
stream with no nonlinear access and no need to interpret timecode, you
really do need it. Search the list archives; I recently posted an
implementation of the 64 bit math using 16/32 bit integers that should
be adaptable to your uses.
Monty
More information about the Tremor
mailing list