Lines Matching refs:low
52 def __init__(self, name, low, high, shr, type, parser): argument
54 self.low = low
63 if low < 0 or low > maxpos:
64 raise parser.error("low attribute out of range: %d" % low)
67 if high < low:
68 raise parser.error("low is greater than high: low=%d, high=%d" % (low, high))
69 if self.type == "boolean" and not low == high:
71 elif self.type == "float" and not (high - low == 31 or high - low == 15):
95 elif self.type == "float" and self.high - self.low == 31:
98 elif self.type == "float" and self.high - self.low == 15:
119 def mask(low, high): argument
120 return ((0xffffffffffffffff >> (64 - (high + 1 - low))) << low)
169 known_mask |= mask(f.low, f.high)
173 print(" assert((%-40s & 0x%08x) == 0);" % (val, 0xffffffff ^ mask(0 , f.high - f.low)))
189 print(" (%-40s << %2d) |" % (val, f.low))
203 print(" .bo_low = %d," % address.low)
265 if not f.name and f.low == 0 and f.shr == 0 and not f.type in ["float", "fixed", "ufixed"]:
267 elif f.type == "boolean" or (f.type == None and f.low == f.high):
268 tab_to("#define %s" % name, "0x%08x" % (1 << f.low))
270 tab_to("#define %s__MASK" % name, "0x%08x" % mask(f.low, f.high))
271 tab_to("#define %s__SHIFT" % name, "%d" % f.low)
468 high = low = int(attrs["pos"], 0)
471 low = int(attrs["low"], 0)
473 low = 0
486 b = Field(name, low, high, shr, type, self)