LHA Library for Java

jp.gr.java_conf.dangan.io
Class Bits

java.lang.Object
  extended by jp.gr.java_conf.dangan.io.Bits

public class Bits
extends java.lang.Object

ビット処理のためのユーティリティメソッド群。

 -- revision history --
 $Log: Bits.java,v $
 Revision 1.0  2002/12/05 00:00:00  dangan
 first edition
 add to version control

 

Version:
$Revision: 1.0 $
Author:
$Author: dangan $

Method Summary
static int len(int val)
          val のビット長を得る。 val は符号なし 32ビット整数とみなされる。 log2( (long)val & 0xFFFFFFFFL ) の戻り値の 小数点以下を切り捨てたものと同等。
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

len

public static int len(int val)
val のビット長を得る。 val は符号なし 32ビット整数とみなされる。 log2( (long)val & 0xFFFFFFFFL ) の戻り値の 小数点以下を切り捨てたものと同等。

Parameters:
val - 整数値
Returns:
val のビット長

LHA Library for Java

When you found typographical errors or omissions, Please mail to cqw10305@nifty.com
The company name and product name which are used in this document, it is the trademark or registered trademark of each company generally.
Copyright © 2001-2002 Michel Ishizuka. All Rights Reserved.