[vorbis-dev] Re: Different average bitrates on different machines

Simon Hosie simon.hosie at clear.net.nz
Tue Dec 11 17:13:38 PST 2001



On Tue, Dec 11, 2001 at 10:55:45PM +0100, Segher Boessenkool wrote:
> Post-increments are evil, and not useful on nearly any processor (nowadays)
> (the exception is ARM).

And PPC, and 68k, and AVR, and some of the 680x lot that are still in use,
and ...  I don't think they express much that the compiler couldn't figure
out on its own, in any case.

> But they are _so_ very handy for the programmer :-)

They're perfectly safe in the hands of responsible adults.  But I do
think they could be better checked by the compiler.

> The standard _has_ to be vague about a lot of things.  Not everything uses
> two's complement, for example (although most programs assume all the world
> is like that, and because of that, are not portable C).

I'd have to challenge that, too.  Although the spec is vague, it does
assure something really peculiar along the lines of negative values cast
to unsigned same-data-type are larger than any positive value
expressible in the signed type.  However it specifies it, it's
sufficient to satisfy the only assumption I've ever seen made, that
(unsigned)x < 10 is true when 0 <= x < 10.  I can't think of any other
assumptions that would be made regularly, except when writing binary
files, which isn't too common in the greater scheme of things.

--- >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