[vorbis-dev] longs
lars brinkhoff
lars at nocrew.org
Mon Sep 11 22:41:23 PDT 2000
Taral <taral at taral.net> writes:
> On 11 Sep, Monty wrote:
> >> Personally, I think it's better to never use native C data types directly
> >> as their size is not constant. The problem you ran into is a good example
> >> of why typedefs should be used instead.
> > C is the way it is for a reason, even if the decided upon spec
> > turned out to be 'not entirely sufficient'. Forcing an Alpha to
> > use 32 bit ints, for example, is a good way to kill integer
> > performace (as Windows NT for Alpha partially demostrates).
> How about using int_min32 or something that guarantees a type which has
> 32 bits or more and is efficient on the platform?
In C99 <stdint.h>, there's a data type called int_fast32_t. It's
defined as the fastest integer data type with at least 32 bits of
precision.
(No, <stdint.h> isn't available on all platforms, but maybe new
typedefs could be modelled after it.)
--- >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 'vorbis-dev-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 Vorbis-dev
mailing list