source:
trunk/src/gcc/libf2c/libF77/i_sign.c@
645
| Last change on this file since 645 was 2, checked in by , 23 years ago | |
|---|---|
|
|
| File size: 193 bytes | |
| Line | |
|---|---|
| 1 | #include "f2c.h" |
| 2 | |
| 3 | #ifdef KR_headers |
| 4 | integer i_sign(a,b) integer *a, *b; |
| 5 | #else |
| 6 | integer i_sign(integer *a, integer *b) |
| 7 | #endif |
| 8 | { |
| 9 | integer x; |
| 10 | x = (*a >= 0 ? *a : - *a); |
| 11 | return( *b >= 0 ? x : -x); |
| 12 | } |
Note:
See TracBrowser
for help on using the repository browser.
