[tremor] Re: [vorbis-dev] Problems on TI DSP c6701

Tony ope821 at hotmail.com
Sun May 9 08:32:32 PDT 2004



Thanks for Monty and Mike reply,
I think I already found where the problem is.
In sharebook.c, the function sort32a return the wrong value cause the incorrect result of sort, so I think  maybe the qsort function of ccs v2.0 get some bugs there.
I rewrite the sort32a function as follows:
  int sort32a(const void *a,const void *b){
 if(**(ogg_uint32_t **)a>**(ogg_uint32_t **)b) return 1;
 if(**(ogg_uint32_t **)a<**(ogg_uint32_t **)b) return -1;
 else return 0 ;

It loos the same but cause different result in ccs, maybe someone are good at ccs could tell me the reason . Whatever, I solve the problem then tremor and libvorbis got works.
I should face the realtime issue and optimize the code, the speed is most important , I think c6701 has enough memory to exchange speed .Any suggestions would be very appreciated.
Regards Tony
--- >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