Example #1
0
void factor_vm::fp_signal_handler_impl()
{
	/* Clear pending exceptions to avoid getting stuck in a loop */
	set_fpu_state(get_fpu_state());

	fp_trap_error(signal_fpu_status);
}
Example #2
0
void
ieee_procedure_entry (void *state)
{
  /* Save the floating-point state in the space provided by the caller.  */
  get_fpu_state (state);

  /* Clear the floating-point exceptions.  */
  set_fpu_except_flags (0, GFC_FPE_ALL);
}
Example #3
0
/* Allocates memory (fp_trap_error())*/
void factor_vm::fp_signal_handler_impl() {
  /* Clear pending exceptions to avoid getting stuck in a loop */
  set_fpu_state(get_fpu_state());

  general_error(ERROR_FP_TRAP, tag_fixnum(signal_fpu_status), false_object);
}