Drop in tinflate lib.
authorTobias Diedrich <ranma+coreboot@tdiedrich.de>
Tue, 20 Oct 2015 22:20:35 +0000 (00:20 +0200)
committerTobias Diedrich <ranma+coreboot@tdiedrich.de>
Tue, 20 Oct 2015 22:25:44 +0000 (00:25 +0200)
commit2ae5473c47e1d6fdb2812e047768c0a12911de43
tree19ed00d5da0f57d0e7bb6f390de3cb278cf61c1a
parentcb04958f2bd7a465f22d79bbee47e52150cf85ce
Drop in tinflate lib.

Adds compatibility-macro for crc32.
Setting first arg (crc) to anything but 0 is not supported, but all
callers already conform to this.
This is asserted at compile time through macro trickery.

Reduces uncompressed code size by ~1KB:
Without this change: Data Size: 127348 Bytes = 124.36 kB = 0.12 MB
After this change: Data Size: 126084 Bytes = 123.13 kB = 0.12 MB
u-boot/include/common.h
u-boot/include/crc32.h [deleted file]
u-boot/include/tinf.h [new file with mode: 0644]
u-boot/lib_generic/crc32.c
u-boot/lib_generic/tinfcrc32.c [new file with mode: 0644]
u-boot/lib_generic/tinfgzip.c [new file with mode: 0644]
u-boot/lib_generic/tinflate.c [new file with mode: 0644]
u-boot/tools/mkimage.c