[tremor] Compiling on platforms without 64-bit integer support

Monty xiphmont at xiph.org
Sat Sep 14 11:21:41 PDT 2002



> Right, but I still have a problem.  As is, the Tremor
> implementation uses algebraic syntax (+, -, *,
> etc.)for 64-bit integers.  The problem is that not all
> processors support 64-bit arithmetic.  Whether they
> all should, I don't know, but we've seen compilers for
> at least two CPUs that don't.  Now, implementing
> 64-bit math is not that hard, but having to replace
> algebraic operations with calls to custom arithmetic
> functions is a pain -- you have to track each 64-bit
> variable and replace builtin ops with function calls. 
> So maybe 64-bit math should be treated as a special
> case, just as 32x32 bit multiplication is (MULT31,
> etc.)  Maybe I can operator overload using the C++
> compiler.

Given the intended embedded application of Tremor (and the fact that
the 64 bit ops are limited to a few special cases as noted), that is
sounding like a better idea all the time.

Monty
--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'tremor-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Tremor mailing list