add math functions: logb, ilogb