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/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [execute/] [ieee/] [hugeval.c] - Blame information for rev 378

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

Line No. Rev Author Line
1 297 jeremybenn
#include <math.h>
2
 
3
static const double zero =  0.0;
4
static const double pone =  1.0;
5
static const double none = -1.0;
6
static const double pinf =  1.0 / 0.0;
7
static const double ninf = -1.0 / 0.0;
8
 
9
int
10
main ()
11
{
12
  if (pinf != pone/zero)
13
    abort ();
14
 
15
  if (ninf != none/zero)
16
    abort ();
17
 
18
#ifdef HUGE_VAL
19
  if (HUGE_VAL != pinf)
20
    abort ();
21
 
22
  if (-HUGE_VAL != ninf)
23
    abort ();
24
#endif
25
 
26
  exit (0);
27
}

powered by: WebSVN 2.1.0

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