sparc: refactor sparc64 finite{f} selector to C