source: trunk/src/gcc/libf2c/libF77/h_abs.c@ 645

Last change on this file since 645 was 2, checked in by bird, 23 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 151 bytes
Line 
1#include "f2c.h"
2
3#ifdef KR_headers
4shortint h_abs(x) shortint *x;
5#else
6shortint h_abs(shortint *x)
7#endif
8{
9if(*x >= 0)
10 return(*x);
11return(- *x);
12}
Note: See TracBrowser for help on using the repository browser.