Automatic date update in version.in
[binutils-gdb.git] / sim / common / cgen-fpu.c
blob1b035eae34325e4e90958f413902b815f217f4b7
1 /* CGEN fpu support
2 Copyright (C) 1999 Cygnus Solutions. */
4 /* This must come before any other includes. */
5 #include "defs.h"
7 #include "sim-main.h"
8 #include "sim-fpu.h"
10 /* Return boolean indicating if X is an snan. */
13 cgen_sf_snan_p (CGEN_FPU* fpu, SF x)
15 sim_fpu op1;
17 sim_fpu_32to (&op1, x);
18 return sim_fpu_is_nan (&op1);
22 cgen_df_snan_p (CGEN_FPU* fpu, DF x)
24 sim_fpu op1;
26 sim_fpu_64to (&op1, x);
27 return sim_fpu_is_nan (&op1);
30 /* No-op fpu error handler. */
32 void
33 cgen_fpu_ignore_errors (CGEN_FPU* fpu, int status)