1: /* function igetbt fortran callable for integer*2.    PLW 8/5/79*/
   2: /* For integer x, return right shifted the n bits counting from
   3:    low to high and beginning at p where the lowest order bit is
   4:    0 and an integer is 15 bits plus the sign bit.               */
   5: int h_getbit(x,p,n)
   6:         unsigned int *x,*p,*n;
   7: {
   8:     unsigned int r;
   9:     r=~(~0 << *n);
  10:     return((((r << *p) & *x) >> *p) & r);
  11: }

Defined functions

h_getbit defined in line 5; never used
Last modified: 1981-07-10
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 258
Valid CSS Valid XHTML 1.0 Strict