sparc: refactor sparc64 isnan{f} selector to C