hexagon: modify ffs() and fls() to return int