I'm terrible with math, is this looking proper ?


function clearbit($a,$b)
$clearbit = $a & (-1-$b)
endfunction

-Shawn