| 605 | #endif /*LODEPNG_COMPILE_DECODER*/ |
| 606 | |
| 607 | static unsigned reverseBits(unsigned bits, unsigned num) { |
| 608 | /*TODO: implement faster lookup table based version when needed*/ |
| 609 | unsigned i, result = 0; |
| 610 | for(i = 0; i < num; i++) result |= ((bits >> (num - i - 1u)) & 1u) << i; |
| 611 | return result; |
| 612 | } |
| 613 | |
| 614 | /* ////////////////////////////////////////////////////////////////////////// */ |
| 615 | /* / Deflate - Huffman / */ |
no outgoing calls
no test coverage detected