Make zlib go faster

This commit is contained in:
Justine Tunney 2022-09-18 06:30:45 -07:00
parent be29b709b7
commit 224c12f54d
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
6 changed files with 16 additions and 43 deletions

View file

@ -108,12 +108,6 @@ forceinline pureconst bool IsArenaFrame(int x) {
return 0x5004 <= x && x <= 0x7ffb;
}
forceinline pureconst bool IsKernelFrame(int x) {
intptr_t stack = GetStaticStackAddr(0);
return (int)(stack >> 16) <= x &&
x <= (int)((stack + (GetStackSize() - FRAMESIZE)) >> 16);
}
forceinline pureconst bool IsStaticStackFrame(int x) {
intptr_t stack = GetStaticStackAddr(0);
return (int)(stack >> 16) <= x &&