sim: syscall: add common sim_syscall helpers
[deliverable/binutils-gdb.git] / sim / common / cgen-fpu.c
CommitLineData
3535ad49
JM
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
9BI
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
18BI
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
29void
30cgen_fpu_ignore_errors (CGEN_FPU* fpu, int status)
31{
32}
This page took 0.65718 seconds and 4 git commands to generate.