File: infinity.c

package info (click to toggle)
pdl 1%3A2.007-4
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 11,848 kB
  • ctags: 6,321
  • sloc: perl: 32,760; fortran: 13,113; ansic: 9,273; makefile: 81; sh: 32
file content (10 lines) | stat: -rw-r--r-- 164 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
#include "mconf.h"
double infinity(void)
{
#ifdef DBL_INFINITY
  return DBL_INFINITY;
#else
  double a=0;
  return 1./a; /* Expect divide by zero error */
#endif
}