[vorbis-dev] BeOS on PPC compile, thread question.

Segher Boessenkool segher at wanadoo.nl
Wed Nov 15 15:17:05 PST 2000



> it be accepted? Also, while most of them are changing the void
> *'s from mallocs and reallocs (and hence probably harmless), some
> of them are telling me that I'm taking void * pointers from
> internal structures and having to cast them, which doesn't seem
> quite right. I'm at work now, so I can't provide any examples. I
> can get some if anyone is interested.

Those void * in the structures are effictively doing OO. The pointers
are to internal data structures for the different time, map, floor,
res routines (there's only one of each right now). The higher level
code doesn't know if it is a res0, res1, etc. so it uses a void *.

> I'm also getting bit by the lack of alloca on older BeOS's, but I
> don't expect anyone to change that since every OS including
> current rev's of BeOS provide alloca. Oh well. I'm putting in
> malloc/free pairs instead, which should speed things up quite a
> bit ;-)>

I'd like to see your code to see if it makes a significant performance
difference. Maybe the only effect you're seeing is the fact that
alloca's ain't cacheline-aligned (I have a simple fix for this; it only
significantly affects two or three alloca's in the entire code).

Dagdag,

Segher

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