source: trunk/src/gcc/libf2c/libF77/h_sign.c@ 603

Last change on this file since 603 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: 199 bytes
Line 
1#include "f2c.h"
2
3#ifdef KR_headers
4shortint h_sign(a,b) shortint *a, *b;
5#else
6shortint h_sign(shortint *a, shortint *b)
7#endif
8{
9shortint x;
10x = (*a >= 0 ? *a : - *a);
11return( *b >= 0 ? x : -x);
12}
Note: See TracBrowser for help on using the repository browser.