Hashmaps now autoexpand based on loadFactor.

git-svn-id: https://spexeah.com:8443/svn/Asuro@1298 6dbc8c32-bb84-406f-8558-d1cf31a0ab0c
This commit is contained in:
kieron
2020-07-17 22:29:27 +00:00
parent b802ac9607
commit 984b6a89c8
5 changed files with 111 additions and 54 deletions

View File

@ -262,6 +262,21 @@ begin
printCapabilities(getTerminalHWND);
end;
procedure enableSSE();
begin
If CPUID.Capabilities0^.SSE then begin
asm
MOV EAX, CR0
AND AX, $FFFB
OR AX, $2
MOV CR0, EAX
MOV EAX, CR4
OR AX, 3 shl 9
MOV CR4, EAX
end;
end;
end;
procedure init();
begin
terminal.registerCommand('CPU', @Terminal_Command_CPU, 'CPU Info.');
@ -270,6 +285,7 @@ begin
getCPUIdentifier;
getCPUCapabilities;
getCPUClockSpeed;
enableSSE;
end;
end.