Subversion Repositories Kolibri OS

Rev

Rev 7741 | Rev 7881 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7741 Rev 7831
Line 171... Line 171...
171
:byte Dictionary::init(dword size)
171
:byte Dictionary::init(dword size)
172
{
172
{
173
	RETURN array.init(size);
173
	RETURN array.init(size);
174
}
174
}
Line -... Line 175...
-
 
175
 
-
 
176
dword indexArray(dword address, key)
-
 
177
{
-
 
178
	dword offset = key&11b;
-
 
179
	dword offsetAddress = offset*4+address;
-
 
180
	IF (key==offset) RETURN 4*4+offsetAddress;
-
 
181
	IF (!DSDWORD[offsetAddress]) DSDWORD[offsetAddress] = malloc(4*4*2);
-
 
182
	RETURN indexArray(DSDWORD[offsetAddress], key>>2);
-
 
183
}
175
 
184