* gcj.texi (Compatibility): Add Limitations and Extensions section.
[official-gcc.git] / libf2c / libF77 / d_sign.c
blobda8d24ba7a1927024904e350f9684cb7b096690b
1 #include "f2c.h"
3 double
4 d_sign (doublereal * a, doublereal * b)
6 double x;
7 x = (*a >= 0 ? *a : -*a);
8 return (*b >= 0 ? x : -x);