[android-porting] Re: FLAC decoder/Parser in Android Kitkat takes up too much CPU

2014-01-09 Thread Glenn Kasten
The clang -ftrapv option is not currently implemented efficiently for the type of integer computation-intensive code used in FLAC inner loops. The code generated for -ftrapv option doesn't yet take advantage of the ARM architecture's "V" (overflow) condition code bit. On Thursday, January 9, 201

[android-porting] Re: FLAC decoder/Parser in Android Kitkat takes up too much CPU

2014-01-09 Thread Uday Gupta
Thanks. I actually made the same change after I posted the query and the stutters went away. Looks like the clang compiler is was inefficient compared to gcc or is it that compiler options are not getting passed to clang? On Thursday, January 9, 2014 3:06:08 PM UTC-8, Glenn Kasten wrote: > > Se

[android-porting] Re: FLAC decoder/Parser in Android Kitkat takes up too much CPU

2014-01-09 Thread Glenn Kasten
See https://code.google.com/p/android/issues/detail?id=62562 comment #23 Nov 25, 2013 and the AOSP CL that it links to: https://android-review.googlesource.com/#/c/70749/ On Thursday, January 9, 2014 2:43:38 PM UTC-8, Uday Gupta wrote: > > Hi, > > Has anybody seen that FLAC decoder/Parser in Andro