adapt dispatch refactoring for crlibm namespace