MCPcopy Create free account
hub / github.com/numpy/numpy / pow_ii

Function pow_ii

numpy/linalg/lapack_lite/f2c.c:694–711  ·  view source on GitHub ↗
(ap, bp)

Source from the content-addressed store, hash-verified

692
693#ifdef KR_headers
694integer pow_ii(ap, bp) integer *ap, *bp;
695#else
696integer pow_ii(integer *ap, integer *bp)
697#endif
698{
699 integer pow, x, n;
700 unsigned long u;
701
702 x = *ap;
703 n = *bp;
704
705 if (n <= 0) {
706 if (n == 0 || x == 1)
707 return 1;
708 if (x != -1)
709 return x == 0 ? 1/x : 0;
710 n = -n;
711 }
712 u = n;
713 for(pow = 1; ; )
714 {

Callers 15

dlaed0_Function · 0.85
dlaed7_Function · 0.85
dlaeda_Function · 0.85
dlalsa_Function · 0.85
dlasd0_Function · 0.85
dlasda_Function · 0.85
dstedc_Function · 0.85
claed0_Function · 0.85
claed7_Function · 0.85
clalsa_Function · 0.85
cstedc_Function · 0.85
zlaed0_Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected