langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/util/Bits.java
changeset 29054 310b8028d7df
parent 26537 026471c1a12b
equal deleted inserted replaced
29053:5c1f1d6b40f6 29054:310b8028d7df
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2014, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2015, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
    82             }
    82             }
    83         }
    83         }
    84 
    84 
    85     }
    85     }
    86 
    86 
    87     public enum BitsOpKind {
       
    88         INIT,
       
    89         CLEAR,
       
    90         INCL_BIT,
       
    91         EXCL_BIT,
       
    92         ASSIGN,
       
    93         AND_SET,
       
    94         OR_SET,
       
    95         DIFF_SET,
       
    96         XOR_SET,
       
    97         INCL_RANGE,
       
    98         EXCL_RANGE,
       
    99     }
       
   100 
       
   101     private final static int wordlen = 32;
    87     private final static int wordlen = 32;
   102     private final static int wordshift = 5;
    88     private final static int wordshift = 5;
   103     private final static int wordmask = wordlen - 1;
    89     private final static int wordmask = wordlen - 1;
   104 
    90 
   105     public int[] bits = null;
    91     public int[] bits = null;