From 84a301e37f87c72e84fd254fc58a4f6d6c77b177 Mon Sep 17 00:00:00 2001 From: Archbirdplus Date: Sun, 20 Oct 2024 17:38:24 -0700 Subject: [PATCH] mem.zig: remove page_size --- lib/std/mem.zig | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/lib/std/mem.zig b/lib/std/mem.zig index c0954343d5ff..02461305ef4d 100644 --- a/lib/std/mem.zig +++ b/lib/std/mem.zig @@ -8,26 +8,6 @@ const testing = std.testing; const Endian = std.builtin.Endian; const native_endian = builtin.cpu.arch.endian(); -/// Compile time known minimum page size. -/// https://github.com/ziglang/zig/issues/4082 -pub const page_size = switch (builtin.cpu.arch) { - .wasm32, .wasm64 => 64 * 1024, - .aarch64 => switch (builtin.os.tag) { - .macos, .ios, .watchos, .tvos, .visionos => 16 * 1024, - else => 4 * 1024, - }, - .sparc64 => 8 * 1024, - .loongarch32, .loongarch64 => switch (builtin.os.tag) { - // Linux default KConfig value is 16KiB - .linux => 16 * 1024, - // FIXME: - // There is no other OS supported yet. Use the same value - // as Linux for now. - else => 16 * 1024, - }, - else => 4 * 1024, -}; - /// The standard library currently thoroughly depends on byte size /// being 8 bits. (see the use of u8 throughout allocation code as /// the "byte" type.) Code which depends on this can reference this