debian/external_deps/fetk/punc/src/vf2c/pow_ci.c
raw| 1 | #include "f2c.h" |
| 2 | #ifdef __cplusplus |
| 3 | extern "C" { |
| 4 | #endif |
| 5 | |
| 6 | #ifdef KR_headers |
| 7 | VOID pow_ci(p, a, b) /* p = a**b */ |
| 8 | realcomplex *p, *a; integer *b; |
| 9 | #else |
| 10 | extern void pow_zi(doublecomplex*, doublecomplex*, integer*); |
| 11 | void pow_ci(realcomplex *p, realcomplex *a, integer *b) /* p = a**b */ |
| 12 | #endif |
| 13 | { |
| 14 | doublecomplex p1, a1; |
| 15 | |
| 16 | a1.r = a->r; |
| 17 | a1.i = a->i; |
| 18 | |
| 19 | pow_zi(&p1, &a1, b); |
| 20 | |
| 21 | p->r = p1.r; |
| 22 | p->i = p1.i; |
| 23 | } |
| 24 | #ifdef __cplusplus |
| 25 | } |
| 26 | #endif |