Add flr and fls functions