GitLab will be upgraded on June 2nd 2020 at 2.00 pm (AEDT) to 3.00 pm (AEDT) due to Critical Security Patch Availability. During the update, GitLab and Mattermost services will not be available. If you have any concerns with this, please talk to local Gitlab admin team.

Commit b2930515 authored by John Zhang's avatar John Zhang

arraysum

parent 115c41f4
......@@ -16,11 +16,11 @@ def setup(n):
arr = lltype.malloc(rffi.CArray(rffi.LONGLONG), n, flavor='raw')
for i, k in enumerate(lst):
arr[i] = k
return rffi.ll2ctypes.lltype2ctypes(arr) , n
return arr, rffi.cast(lltype.Unsigned, n)
def teardown(carr, n):
lltype.free(rffi.ll2ctypes.ctypes2lltype(rffi.CArray(rffi.LONGLONG), carr), 'raw')
def teardown(arr, n):
lltype.free(arr, 'raw')
def rand_list_of(n):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment