comparison graal/com.oracle.max.asmdis/src/com/sun/max/asm/ppc/CRF.java @ 4142:bc8527f3071c

Adjust code base to new level of warnings.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Sun, 18 Dec 2011 05:24:06 +0100
parents e233f5660da4
children
comparison
equal deleted inserted replaced
4141:04d21be7a24f 4142:bc8527f3071c
65 } 65 }
66 66
67 /** 67 /**
68 * Given the index of a bit within this 4-bit field, returns the index of the same bit 68 * Given the index of a bit within this 4-bit field, returns the index of the same bit
69 * in the 32-bit Condition Register. 69 * in the 32-bit Condition Register.
70 * 70 *
71 * @throws IllegalArgumentException if n is not between 0 and 3 inclusive 71 * @throws IllegalArgumentException if n is not between 0 and 3 inclusive
72 */ 72 */
73 public int bitFor(int n) { 73 public int bitFor(int n) {
74 if (n < 0 || n > 3) { 74 if (n < 0 || n > 3) {
75 throw new IllegalArgumentException("bit specifier must be between 0 and 3"); 75 throw new IllegalArgumentException("bit specifier must be between 0 and 3");
135 /** 135 /**
136 * Index of the bit in a 4-bit Condition Register field indicating an <i>unordered (after floating-point comparison)</i> condition. 136 * Index of the bit in a 4-bit Condition Register field indicating an <i>unordered (after floating-point comparison)</i> condition.
137 */ 137 */
138 public static final int UN = 3; 138 public static final int UN = 3;
139 139
140 public static final Enumerator<CRF> ENUMERATOR = new Enumerator<CRF>(CRF.class); 140 public static final Enumerator<CRF> ENUMERATOR = new Enumerator<>(CRF.class);
141 141
142 } 142 }