def _long_from_native_int(self, ival, func_name, native_int_type, signed):
    fnty = Type.function(self.pyobj, [native_int_type])
    fn = self._get_function(fnty, name=func_name)
    resptr = cgutils.alloca_once(self.builder, self.pyobj)
    fn = self._get_function(fnty, name=func_name)
    self.builder.store(self.builder.call(fn, [ival]), resptr)
    return self.builder.load(resptr)
def _long_from_native_int(self, ival, func_name, native_int_type, signed):
    fnty = Type.function(self.pyobj, [native_int_type])
    fn = self._get_function(fnty, name=func_name)
    resptr = cgutils.alloca_once(self.builder, self.pyobj)
    fn = self._get_function(fnty, name=func_name)
    self.builder.store(self.builder.call(fn, [ival]), resptr)
    return self.builder.load(resptr)