d_abs.c   [plain text]


#include "f2c.h"

double
d_abs (doublereal * x)
{
  if (*x >= 0)
    return (*x);
  return (-*x);
}