PlatformConstants.scala 289 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
package uvm.refimpl.nat

/**
 * Constants specific to the platform. Currently only supports x86_64.
 */
object PlatformConstants {
  type Word = Long

  val WORD_SIZE_LOG: Word = 6L
  val WORD_SIZE_BITS: Word = 1L << WORD_SIZE_LOG
  val WORD_SIZE_BYTES: Word = 1L << (WORD_SIZE_LOG - 3L)
}