projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
BSD 4 development
[unix-history]
/
usr
/
src
/
lib
/
libF77
/
pow_ii.c
long int
pow_ii
(
ap
,
bp
)
long int
*
ap
, *
bp
;
{
long int
pow
,
x
,
n
;
pow
=
1
;
x
= *
ap
;
n
= *
bp
;
if
(
n
<
0
)
{ }
else if
(
n
>
0
)
for
( ; ; )
{
if
(
n
&
01
)
pow
*=
x
;
if
(
n
>>=
1
)
x
*=
x
;
else
break
;
}
return
(
pow
);
}