zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 23b299056dd6d5ed5f8f0dc4306add697e2154c2 (tree)
parent a03b924e742f61be53731a09ec01db2ca0f8cd78
Author: Alex Rønne Petersen <alex@alexrp.com>
Date:   Thu, 23 Oct 2025 19:33:34 +0200

std.heap: define page size for hppa, sh on NetBSD

Diffstat:
Mlib/std/heap.zig | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/lib/std/heap.zig b/lib/std/heap.zig @@ -739,8 +739,10 @@ const page_size_min_default: ?usize = switch (builtin.os.tag) { .x86, .x86_64 => 4 << 10, .thumb, .thumbeb, .arm, .armeb => 4 << 10, .aarch64, .aarch64_be => 4 << 10, + .hppa => 4 << 10, .mips, .mipsel, .mips64, .mips64el => 4 << 10, .powerpc, .powerpc64, .powerpc64le, .powerpcle => 4 << 10, + .sh, .sheb => 4 << 10, .sparc => 4 << 10, .sparc64 => 8 << 10, .riscv32, .riscv64 => 4 << 10, @@ -895,8 +897,10 @@ const page_size_max_default: ?usize = switch (builtin.os.tag) { .x86, .x86_64 => 4 << 10, .thumb, .thumbeb, .arm, .armeb => 4 << 10, .aarch64, .aarch64_be => 64 << 10, + .hppa => 4 << 10, .mips, .mipsel, .mips64, .mips64el => 16 << 10, .powerpc, .powerpc64, .powerpc64le, .powerpcle => 16 << 10, + .sh, .sheb => 4 << 10, .sparc => 8 << 10, .sparc64 => 8 << 10, .riscv32, .riscv64 => 4 << 10,