OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [sim/] [common/] [cgen-fpu.c] - Blame information for rev 310

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
/* 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
10
cgen_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
19
cgen_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
30
cgen_fpu_ignore_errors (CGEN_FPU* fpu, int status)
31
{
32
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.