[U-Boot] [PATCH RESEND v2 01/10] lib: Import few bitmap functions from Linux