summaryrefslogtreecommitdiffstats
path: root/contrib/libf2c/libF77/r_int.c
blob: 3c1b28ea4c7cb080b912c33e1ab9c928f08ae0fa (plain)
1
2
3
4
5
6
7
8
9
#include "f2c.h"

#undef abs
#include <math.h>
double
r_int (real * x)
{
  return ((*x > 0) ? floor (*x) : -floor (-*x));
}
OpenPOWER on IntegriCloud