Main Page   Packages   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

HashData.java

00001 package gov.nasa.arc.ase.util;
00002 
00003 public class HashData {
00004   private int poly = 0x88888EEF;
00005   private int m = -1;
00006 
00007   public void add(int value) {
00008     if(m < 0) {
00009       m += m;
00010       m ^= poly;
00011     } else
00012       m += m;
00013     m ^= value;
00014   }  
00015   public int getValue() {
00016     return (m >>> 4) ^ (m & 15);
00017   }  
00018 }

Generated at Thu Feb 7 06:46:09 2002 for Bandera by doxygen1.2.10 written by Dimitri van Heesch, © 1997-2001