aboutsummaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
authorxEgoist <egoist@egoistic.dev>2023-04-12 18:22:07 -0500
committerAndrew Kelley <andrew@ziglang.org>2023-04-14 13:43:03 -0400
commit0733c8c5ca03f55fe8f65f74cea89dfccf6079b4 (patch)
tree1d941f7b9845f860304cfd4a9fd12be59e7b880a /src/main.zig
parent7b908e173fa6034dc92e6b73c4264dc44706bd32 (diff)
downloadzig-0733c8c5ca03f55fe8f65f74cea89dfccf6079b4.tar.gz
zig-0733c8c5ca03f55fe8f65f74cea89dfccf6079b4.zip
windows: replace GetPhysicallyInstalledSystemMemory with ntdll.
`GetPhysicallyInstalledSystemMemory` uses SMBios to grab the physical memory size which can lead to unecessary allocation and inacurate representation of the total memory. Using `System_Basic_Information` help to retrieve the physical memory which is not reserved for the kernel/tables. This aligns better with the linux side as `/proc/meminfo` does the same thing.
Diffstat (limited to 'src/main.zig')
0 files changed, 0 insertions, 0 deletions