Opimization of mask, bitfieldInsert, bitfieldExtract and bitCount