# 2.11BSD#431 - /usr/ingres/source/gutil/bitcnt.c

##### Functions

    bitcnt            X

       1: bitcnt(var)
       2: int var;
       3:
       4: /*
       5: **	Count the number of 1's in the integer var. As long
       6: **	as left shift is zero fill this routine is machine
       7: **	independent.
       8: */
       9:
      10: {
      11:     register int    i, j, ret;
      12:
      13:     j = var;
      14:
      15:     for (ret = 0, i = 1; i; i <<= 1)
      16:         if (i & j)
      17:             ret++;
      18:
      19:     return (ret);
      20: }

#### Defined functions

bitcnt defined in line 1; used 6 times

- in /usr/ingres/source/decomp/call_ovqp70.c line 151
- in /usr/ingres/source/decomp/mapvar.c line 35, 44
- in /usr/ingres/source/decomp/reduction.c line 107
- in /usr/ingres/source/qrymod/view.c line 299, 436

Last modified: 1995-02-04 Generated: 2016-12-26 | Generated by src2html V0.67 page hit count: 457 |