#include "f2c.h"
#include "math.h"
Go to the source code of this file.
◆ i_nint()
◆ pow_ii()
Definition at line 30 of file f2clib.c.
   32{
   34    unsigned long u;
   35 
   36    x = *ap;
   37    n = *bp;
   38 
   39    if (n <= 0) {
   40        if (n == 0 || x == 1)
   41            return 1;
   42        if (x != -1)
   43            return x == 0 ? 0 : 1/x;
   44        n = -n;
   45        }
   46    u = n;
   47    for(pow = 1; ; )
   48        {
   49        if(u & 01)
   50            pow *= x;
   51        if(u >>= 1)
   52            x *= x;
   53        else
   54            break;
   55        }
   56    return(pow);
   57    }
Referenced by decode_(), and encode_().
 
 
◆ r_sign()
Definition at line 64 of file f2clib.c.
   66{
   67double x;
   68x = (*
a >= 0 ? *
a : - *
a);
 
   69return( *
b >= 0 ? x : -x);
 
   70}
References a, and b.
Referenced by onset_(), and vparms_().