#include "f2c.h"
#include "gpu.h"
//#ifdef __cplusplus
//extern "C" {
//#endif

//#ifdef KR_headers
//double r_sign(a,b) real *a, *b;
//#else
__device__
double r_sign(real *a, real *b)
//#endif
{
double x;
x = (*a >= 0 ? *a : - *a);
return( *b >= 0 ? x : -x);
}
//#ifdef __cplusplus
//}
//#endif
