/programs/cmm/lib/array.h |
---|
173,4 → 173,13 |
RETURN array.init(size); |
} |
dword indexArray(dword address, key) |
{ |
dword offset = key&11b; |
dword offsetAddress = offset*4+address; |
IF (key==offset) RETURN 4*4+offsetAddress; |
IF (!DSDWORD[offsetAddress]) DSDWORD[offsetAddress] = malloc(4*4*2); |
RETURN indexArray(DSDWORD[offsetAddress], key>>2); |
} |
#endif |