No empty .Rs/.Re
[netbsd-mini2440.git] / gnu / dist / gdb6 / sim / common / cgen-fpu.c
blob3a8d5199bea59a25acda483049b8be0b2728fb48
1 /* CGEN fpu support
2 Copyright (C) 1999 Cygnus Solutions. */
4 #include "sim-main.h"
5 #include "sim-fpu.h"
7 /* Return boolean indicating if X is an snan. */
9 BI
10 cgen_sf_snan_p (CGEN_FPU* fpu, SF x)
12 sim_fpu op1;
14 sim_fpu_32to (&op1, x);
15 return sim_fpu_is_nan (&op1);
19 cgen_df_snan_p (CGEN_FPU* fpu, DF x)
21 sim_fpu op1;
23 sim_fpu_64to (&op1, x);
24 return sim_fpu_is_nan (&op1);
27 /* No-op fpu error handler. */
29 void
30 cgen_fpu_ignore_errors (CGEN_FPU* fpu, int status)