コード例 #1
0
ファイル: errors.cpp プロジェクト: I-I/FactorLanguageBuild
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);
}
コード例 #2
0
ファイル: ieee_helper.c プロジェクト: chinabin/gcc-tiny
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);
}
コード例 #3
0
ファイル: errors.cpp プロジェクト: ForNeVeR/factor
/* 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);
}