core: changed names for bitarithm functions and reverted my_active_thread change