* lib/objc.exp: Add -lposix4 on Solaris 2.8.
[official-gcc.git] / libf2c / libF77 / r_sign.c
blobdf6d02af00a76a2937cddc66d9070f407c7008da
1 #include "f2c.h"
3 #ifdef KR_headers
4 double r_sign(a,b) real *a, *b;
5 #else
6 double r_sign(real *a, real *b)
7 #endif
9 double x;
10 x = (*a >= 0 ? *a : - *a);
11 return( *b >= 0 ? x : -x);