Exemplo n.º 1
0
 def convert_to_imm(self, c):
     adr = self.assembler.datablockwrapper.malloc_aligned(8, 8)
     x = c.getfloatstorage()
     rffi.cast(rffi.CArrayPtr(longlong.FLOATSTORAGE), adr)[0] = x
     return locations.ConstFloatLoc(adr)
Exemplo n.º 2
0
 def convert_to_imm(self, c):
     adr = self.assembler.datablockwrapper.malloc_aligned(8, 8)
     x = c.getfloatstorage()
     rffi.cast(rffi.CArrayPtr(longlong.FLOATSTORAGE), adr)[0] = x
     return locations.ConstFloatLoc(adr)