src/main/java/es/udc/rgen/text/tera/Unsigned16.java
/**
   * Shift the number a given number of bit positions. The number is the low
   * order bits of the result.
   * @param bits the bit positions to shift by
   */
Shift the number a given number of bit positions. The number is the low
order bits of the result.
@param bits the bit positions to shift by
Shift the number a given number of bit positions . The number is the low order bits of the result . @param bits the bit positions to shift by
public void shiftLeft(int bits) {
    if (bits != 0) {
      if (bits < 64) {
        hi8 <<= bits;
        hi8 |= (lo8 >>> (64 - bits));
        lo8 <<= bits;
      } else if (bits < 128) {
        hi8 = lo8 << (bits - 64);
        lo8 = 0;
      } else {
        hi8 = 0;
        lo8 = 0;
      }
    }
  }
public void shiftLeft ( int bits ) { if ( bits != 0 ) { if ( bits < 64 ) { hi8 <<= bits ; hi8 |= ( lo8 >>> ( 64 - bits ) ) ; lo8 <<= bits ; } else if ( bits < 128 ) { hi8 = lo8 << ( bits - 64 ) ; lo8 = 0 ; } else { hi8 = 0 ; lo8 = 0 ; } } }
Shift the number a given number of bit positions.
Shift the number a given number of bit positions .