x86: Use bitmap library functions