diff options
author | cvs2svn <cvs2svn@FreeBSD.org> | 2001-03-24 01:58:32 +0000 |
---|---|---|
committer | cvs2svn <cvs2svn@FreeBSD.org> | 2001-03-24 01:58:32 +0000 |
commit | df5aed8de33407b20f97d7270e08569e65b3b613 (patch) | |
tree | c41c79c4ef7430b486f8d317ee8497996acc3333 /contrib/libf2c/libF77/pow_hh.c | |
parent | 66d7199d63dd50149e63de8a1ffead30b532eee6 (diff) |
Notes
Diffstat (limited to 'contrib/libf2c/libF77/pow_hh.c')
-rw-r--r-- | contrib/libf2c/libF77/pow_hh.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/contrib/libf2c/libF77/pow_hh.c b/contrib/libf2c/libF77/pow_hh.c deleted file mode 100644 index 24a019734da15..0000000000000 --- a/contrib/libf2c/libF77/pow_hh.c +++ /dev/null @@ -1,33 +0,0 @@ -#include "f2c.h" - -#ifdef KR_headers -shortint pow_hh(ap, bp) shortint *ap, *bp; -#else -shortint pow_hh(shortint *ap, shortint *bp) -#endif -{ - shortint pow, x, n; - unsigned u; - - x = *ap; - n = *bp; - - if (n <= 0) { - if (n == 0 || x == 1) - return 1; - if (x != -1) - return x == 0 ? 1/x : 0; - n = -n; - } - u = n; - for(pow = 1; ; ) - { - if(u & 01) - pow *= x; - if(u >>= 1) - x *= x; - else - break; - } - return(pow); - } |