Ejemplo n.º 1
0
 def convert_to_adr(self, c):
     assert isinstance(c, ConstFloat)
     adr = self.assembler.datablockwrapper.malloc_aligned(8, 8)
     x = c.getfloatstorage()
     rffi.cast(rffi.CArrayPtr(longlong.FLOATSTORAGE), adr)[0] = x
     return adr
Ejemplo n.º 2
0
 def convert_to_adr(self, c):
     assert isinstance(c, ConstFloat)
     adr = self.assembler.datablockwrapper.malloc_aligned(8, 8)
     x = c.getfloatstorage()
     rffi.cast(rffi.CArrayPtr(longlong.FLOATSTORAGE), adr)[0] = x
     return adr