Lines Matching refs:size
507 public static byte GetValue(byte reg, int offset, int size) in GetValue() argument
509 if(size < 0 || size > 8) in GetValue()
513 return (byte)(((uint)reg >> offset) & ((0x1ul << size) - 1)); in GetValue()
516 public static uint GetValue(uint reg, int offset, int size) in GetValue() argument
518 if(size < 0 || size > 32) in GetValue()
522 return (uint)((reg >> offset) & ((0x1ul << size) - 1)); in GetValue()
525 public static ulong GetValue(ulong reg, int offset, int size) in GetValue() argument
527 if(size < 0 || size > 64) in GetValue()
531 return (ulong)((reg >> offset) & ((size == 64 ? 0 : (0x1ul << size)) - 1)); in GetValue()
618 public static uint SignExtend(uint value, int size) in SignExtend() argument
620 if(value >= (1 << size - 1)) in SignExtend()
622 return 0xFFFFFFFF << size | value; in SignExtend()
627 public static ulong SignExtend(ulong value, int size) in SignExtend() argument
629 if(value >= (1ul << size - 1)) in SignExtend()
631 return 0xFFFFFFFFFFFFFFFF << size | value; in SignExtend()
753 public VariableLengthValue(int? size = null) in VariableLengthValue() argument
756 sizeLimit = size; in VariableLengthValue()
902 public static BitConcatenator New(int? size = null) in New() argument
904 return new BitConcatenator(size); in New()
922 private BitConcatenator(int? size) in BitConcatenator() argument
924 maxHeight = size; in BitConcatenator()