1 /* CGEN fpu support 2 Copyright (C) 1999 Cygnus Solutions. */ 3 4 #include "sim-main.h" 5 #include "sim-fpu.h" 6 7 /* Return boolean indicating if X is an snan. */ 8 9 BI cgen_sf_snan_p(CGEN_FPU * fpu,SF x)10cgen_sf_snan_p (CGEN_FPU* fpu, SF x) 11 { 12 sim_fpu op1; 13 14 sim_fpu_32to (&op1, x); 15 return sim_fpu_is_nan (&op1); 16 } 17 18 BI cgen_df_snan_p(CGEN_FPU * fpu,DF x)19cgen_df_snan_p (CGEN_FPU* fpu, DF x) 20 { 21 sim_fpu op1; 22 23 sim_fpu_64to (&op1, x); 24 return sim_fpu_is_nan (&op1); 25 } 26 27 /* No-op fpu error handler. */ 28 29 void cgen_fpu_ignore_errors(CGEN_FPU * fpu,int status)30cgen_fpu_ignore_errors (CGEN_FPU* fpu, int status) 31 { 32 } 33