Logo Search packages:      
Sourcecode: libjorbis-java version File versions  Download package

Util.java

package com.jcraft.jorbis;

class Util{
  static int ilog(int v){
    int ret=0;
    while(v!=0){
      ret++;
      v>>>=1;
    }
    return (ret);
  }

  static int ilog2(int v){
    int ret=0;
    while(v>1){
      ret++;
      v>>>=1;
    }
    return (ret);
  }

  static int icount(int v){
    int ret=0;
    while(v!=0){
      ret+=(v&1);
      v>>>=1;
    }
    return (ret);
  }
}

Generated by  Doxygen 1.6.0   Back to index