DescriptionUse intrinsic functions for bit counting to reduce footprint
The clz/bsr instructions produce the same result as the lookup table "jpeg_nbits_table" with equivalent performance. Removing the table saves 64kB. It is not much, but for mobile devices we need to save all memory that is possible.
This change is for gcc and clang compilers.
BUG=
Patch Set 1 #MessagesTotal messages: 7
|