File: d_sign.c

package info (click to toggle)
xppaut 8.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,332 kB
  • sloc: ansic: 74,690; makefile: 127; sh: 92
file content (12 lines) | stat: -rw-r--r-- 196 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
#include "auto_f2c.h"

#ifdef KR_headers
double d_sign(a,b) doublereal a, b;
#else
double d_sign(doublereal a, doublereal b)
#endif
{
double x;
x = (a >= 0 ? a : - a);
return( b >= 0 ? x : -x);
}