summaryrefslogtreecommitdiff
path: root/gnu/lib/libf2c/libF77/i_sign.c
blob: cf090086d008fe81990755112ddf366099734d63 (plain)
1
2
3
4
5
6
7
8
9
#include "f2c.h"

integer
i_sign (integer * a, integer * b)
{
  integer x;
  x = (*a >= 0 ? *a : -*a);
  return (*b >= 0 ? x : -x);
}