[*] Why am i calling libm/crt from here? how stupid am i

This commit is contained in:
Reece Wilson 2023-09-09 15:11:33 +01:00
parent 4ad70cadb4
commit 1fa063e19f

View File

@ -432,15 +432,15 @@ namespace Aurora::Threading
return AuMakeTuple(pAddress, 0, AuOptionalEx<AuUInt32> {});
#endif
auto pRounded = AuPageRound(AuUInt(pAddress), AuUInt(4));
auto uDelta = (AuUInt)pAddress - pRounded;
if (uWordSize == 8)
{
return AuMakeTuple(pAddress, 0xFFFFFFFF, 0xFFFFFFFF);
return AuMakeTuple((const void *)pRounded, uDelta, 0xFFFFFFFF);
}
auto pRounded = AuPageRound(AuUInt(pAddress), AuUInt(4));
auto uDelta = (AuUInt)(pAddress) - (AuUInt)(pRounded);
AuUInt32 uSizeMask = std::pow(AuUInt64(2), AuUInt64(uWordSize * 8)) - 1ull;
AuUInt32 uSizeMask = (1ull << (uWordSize * 8)) - 1ull;
switch (uDelta)
{