Simplify switching floating-point exception handlers