aboutsummaryrefslogtreecommitdiff
path: root/lib/std/math/float.zig
diff options
context:
space:
mode:
authorJay Petacat <jay@jayschwa.net>2023-10-09 22:24:14 -0600
committerAndrew Kelley <andrew@ziglang.org>2024-01-16 15:05:38 -0800
commitfd43baa9ad37217a5715c1e3cfad2d2d78558d1f (patch)
treec0d75d8a8c92038f05ea78f961b5dd7b23e0efbc /lib/std/math/float.zig
parenta338c279f82bfeb68e37b40cd4fc59557336b6ce (diff)
downloadzig-fd43baa9ad37217a5715c1e3cfad2d2d78558d1f.tar.gz
zig-fd43baa9ad37217a5715c1e3cfad2d2d78558d1f.zip
byos: Ease `GeneralPurposeAllocator` integration
These changes enable me to use `GeneralPurposeAllocator` with my "Bring Your Own OS" package. The previous checks for a freestanding target have been expanded to `@hasDecl` checks. - `root.os.heap.page_allocator` is used if it exists. - `debug.isValidMemory` only calls `os.msync` if it's supported.
Diffstat (limited to 'lib/std/math/float.zig')
0 files changed, 0 insertions, 0 deletions