bitmap: fix memset optimization on big-endian systems