Example #1
0
def iter_strings_from_N_x0_element(element):
    mm_group_n_reduce_element(element)
    if element[1]: yield "y_%s" % ihex(element[1])
    if element[2]: yield "x_%s" % ihex(element[2])
    if element[3]: yield "d_%s" % ihex(element[3])
    if element[4]: yield "p_%d" % element[4]
    mm_group_n_clear(element)
Example #2
0
 def str(self):
     prod = []
     c = self.cocode & 0xfff
     if c:
         prod.append("d_%s" % ihex(c))
     if self.m24num:
         prod.append("p_%d" % self.m24num)
     s = "*".join(prod)
     return s if s else "1"
Example #3
0
    def str_word(self, g):
        """Convert group atom g to a string

        """
        s = []
        if g._cocode:
            s.append("d_" + ihex(g._cocode))
        if g._perm_num:
            s.append("p_%d" % g._perm_num)
        s = "*".join(s) if len(s) else "d_0"
        return "AutPL<%s>" % s
Example #4
0
 def str(self):
     return "<GcVector_%s>" % ihex(self.value & 0xffffff, 6)
Example #5
0
 def str(self):
     return "<GCode_%s>" % ihex(self.value & 0xfff, 3)
Example #6
0
 def str(self):
     return "<PLoop_%s>" % ihex(self.value & 0x1fff, 3)
Example #7
0
 def str(self):
     v = self.value
     x = (v >> 12) & 0x1fff
     d = (mat24.ploop_theta(v >> 12) ^ v) & 0xfff
     return "XL2<x_%s*d_%s>" % (ihex(x, 3), ihex(d, 3))