| musl does not define __GNUC_PREREQ. Use patch from Alpine Linux |
| (http://git.alpinelinux.org/cgit/aports/plain/main/celt051/fix-gnuc-prereq.patch). |
| Fixes http://autobuild.buildroot.net/results/223/223ba6003bdd7e0c896455c21fa8fee943b4e716/ |
| Signed-off-by: Jรถrg Krause <joerg.krause@embedded.rocks> |
| --- celt-0.5.1.3.orig/libcelt/ecintrin.h |
| +++ celt-0.5.1.3/libcelt/ecintrin.h |
| This macro should only be used for implementing ec_ilog(), if it is defined. |
| All other code should use EC_ILOG() instead.*/ |
| +#if defined(__GNUC__) && ((__GNUC__<<16)+__GNUC_MINOR__) >= 0x304 |
| # define EC_CLZ0 sizeof(unsigned)*CHAR_BIT |
| # define EC_CLZ(_x) (__builtin_clz(_x)) |
| # define EC_CLZ0 sizeof(unsigned long)*CHAR_BIT |
| # define EC_CLZ(_x) (__builtin_clzl(_x)) |