Lines Matching refs:high
35 def __init__(self, name, low, high, shr, type, parser):
38 self.high = high
46 if high < 0 or high > 31:
47 raise parser.error("high attribute out of range: %d" % high)
48 if high < low:
49 raise parser.error("low is greater than high: low=%d, high=%d" % (low, high))
50 if self.type == "boolean" and not low == high:
52 elif self.type == "float" and not (high - low == 31 or high - low == 15):
76 elif self.type == "float" and self.high - self.low == 31:
79 elif self.type == "float" and self.high - self.low == 15:
100 def mask(low, high):
101 return ((0xffffffff >> (32 - (high + 1 - low))) << low)
165 known_mask |= mask(f.low, f.high)
169 print(" assert((%-40s & 0x%08x) == 0);" % (val, 0xffffffff ^ mask(0 , f.high - f.low)))
222 elif f.type == "boolean" or (f.type == None and f.low == f.high):
225 tab_to("#define %s__MASK" % name, "0x%08x" % mask(f.low, f.high))
317 high = low = int(attrs["pos"], 0)
318 elif "high" in attrs and "low" in attrs:
319 high = int(attrs["high"], 0)
323 high = 31
335 b = Field(name, low, high, shr, type, self)