Exemple #1
0
 public UByte $unsigned_right$G(long count) {
   return UByte.$box((0xff & $value) >>> count);
 }
Exemple #2
0
 public UByte $left$G(long count) {
   return UByte.$box($value << count);
 }
Exemple #3
0
 public UByte $right$G(long count) {
   return UByte.$box((0xff & $value) >>> count);
 } // UByte is always unsigned
Exemple #4
0
 public UByte $bar(Object a, Type t) {
   return UByte.$box($value | ((UByte) a).$value);
 }
Exemple #5
0
 public UByte $caret(Object a, Type t) {
   return UByte.$box($value ^ ((UByte) a).$value);
 }
Exemple #6
0
 // implements Bitwise<UByte>
 public UByte $tilde$G() {
   return UByte.$box(~$value);
 }
Exemple #7
0
 public UByte $ampersand(Object a, Type t) {
   return UByte.$box($value & ((UByte) a).$value);
 }
Exemple #8
0
 public UByte $over(Object a, Type t) {
   return UByte.$box((byte) ((0xff & $value) / (0xff & ((UByte) a).$value)));
 }
Exemple #9
0
 public UByte $times(Object a, Type t) {
   return UByte.$box($value * ((UByte) a).$value);
 }
Exemple #10
0
 public UByte $minus(Object a, Type t) {
   return UByte.$box($value - ((UByte) a).$value);
 }
Exemple #11
0
 public UByte $plus(Object a, Type t) {
   return UByte.$box($value + ((UByte) a).$value);
 }
Exemple #12
0
 public UByte $minus$G() {
   return UByte.$box(-$value);
 }