[xiph-cvs] cvs commit: vorbis/lib psy.c
Monty
xiphmont at xiph.org
Tue Jul 30 02:44:55 PDT 2002
> @@ -950,8 +950,11 @@
>
> /* this is for per-channel noise normalization */
> static int apsort(const void *a, const void *b){
> - if(fabs(**(float **)a)>fabs(**(float **)b))return -1;
> - return 1;
> + float f1=fabsf(**(float**)a);
> + float f2=fabsf(**(float**)b);
> + if(f1>f2)return -1;
> + else if(f1==f2)return 0;
> + else return 1;
> }
>
> int **_vp_quantize_couple_sort(vorbis_block *vb,
fabsf() is not portable.
Monty
<p>--- >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 'cvs-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 commits
mailing list