[r12189]: / rvmroot / trunk / tools / bootImageWriter / vmmagic / src / org / vmmagic / unboxed / ArchitecturalWord.template  Maximize  Restore  History

Download this file

38 lines (31 with data), 1.0 kB

/*
 *  This file is part of the Jikes RVM project (http://jikesrvm.org).
 *
 *  This file is licensed to You under the Common Public License (CPL);
 *  You may not use this file except in compliance with the License. You
 *  may obtain a copy of the License at
 *
 *      http://www.opensource.org/licenses/cpl1.0.php
 *
 *  See the COPYRIGHT.txt file distributed with this work for information
 *  regarding copyright ownership.
 */
package org.vmmagic.unboxed;

/* machine-generated DO NOT EDIT */

import org.jikesrvm.VM;
import org.vmmagic.pragma.Uninterruptible;

@Uninterruptible abstract class ArchitecturalWord {

 @32MASK@protected int value;
 @64MASK@protected long value;

  ArchitecturalWord() {
    this.value = 0;
  }
  ArchitecturalWord(int value, boolean zeroExtend) {
    @32MASK@this.value = value;
    @64MASK@this.value = (zeroExtend) ? ((long)value) & 0x00000000ffffffffL : value;
  }

  ArchitecturalWord(long value) {
    @32MASK@VM._assert(VM.NOT_REACHED);
    @64MASK@this.value = value;
  }
}