Add mask bits utility code
Add mask bits utility code

gdhungana/desispec,desihub/desispec,timahutchinson/desispec,profxj/desispec,timahutchinson/desispec,desihub/desispec,profxj/desispec,gdhungana/desispec