| author | |
| committer | |
| log | 8cebbc352ab7ec324891fec222f317f02aba45d7 |
| tree | 0069ed8ecff5459268ba1a075abba96705216c18 |
| parent | 1dc7764f2ddc2f3bd78f96017fd2dd2227280055 |
6 files changed, 9 insertions(+), 9 deletions(-)
lib/std/c/minix.zig+1-1| ... | ... | @@ -13,7 +13,7 @@ pub const pthread_cond_t = extern struct { |
| 13 | 13 | const __SIZEOF_PTHREAD_COND_T = 48; |
| 14 | 14 | const __SIZEOF_PTHREAD_MUTEX_T = switch (builtin.abi) { |
| 15 | 15 | .musl, .musleabi, .musleabihf => if (@sizeOf(usize) == 8) 40 else 24, |
| 16 | .gnu, .gnuabin32, .gnuabi64, .gnueabi, .gnueabihf, .gnux32 => switch (builtin.arch) { | |
| 16 | .gnu, .gnuabin32, .gnuabi64, .gnueabi, .gnueabihf, .gnux32 => switch (builtin.cpu.arch) { | |
| 17 | 17 | .aarch64 => 48, |
| 18 | 18 | .x86_64 => if (builtin.abi == .gnux32) 40 else 32, |
| 19 | 19 | .mips64, .powerpc64, .powerpc64le, .sparcv9 => 40, |
lib/std/c/netbsd.zig+3-3| ... | ... | @@ -56,7 +56,7 @@ pub const pthread_cond_t = extern struct { |
| 56 | 56 | |
| 57 | 57 | pub const pthread_rwlock_t = extern struct { |
| 58 | 58 | ptr_magic: c_uint = 0x99990009, |
| 59 | ptr_interlock: switch (std.builtin.arch) { | |
| 59 | ptr_interlock: switch (std.builtin.cpu.arch) { | |
| 60 | 60 | .aarch64, .sparc, .x86_64, .i386 => u8, |
| 61 | 61 | .arm, .powerpc => c_int, |
| 62 | 62 | else => unreachable, |
| ... | ... | @@ -70,7 +70,7 @@ pub const pthread_rwlock_t = extern struct { |
| 70 | 70 | ptr_private: ?*c_void = null, |
| 71 | 71 | }; |
| 72 | 72 | |
| 73 | const pthread_spin_t = switch (builtin.arch) { | |
| 73 | const pthread_spin_t = switch (builtin.cpu.arch) { | |
| 74 | 74 | .aarch64, .aarch64_be, .aarch64_32 => u8, |
| 75 | 75 | .mips, .mipsel, .mips64, .mips64el => u32, |
| 76 | 76 | .powerpc, .powerpc64, .powerpc64le => i32, |
| ... | ... | @@ -81,7 +81,7 @@ const pthread_spin_t = switch (builtin.arch) { |
| 81 | 81 | else => @compileError("undefined pthread_spin_t for this arch"), |
| 82 | 82 | }; |
| 83 | 83 | |
| 84 | const padded_pthread_spin_t = switch (builtin.arch) { | |
| 84 | const padded_pthread_spin_t = switch (builtin.cpu.arch) { | |
| 85 | 85 | .i386, .x86_64 => u32, |
| 86 | 86 | .sparc, .sparcel, .sparcv9 => u32, |
| 87 | 87 | else => pthread_spin_t, |
lib/std/os/bits/haiku.zig+1-1| ... | ... | @@ -858,7 +858,7 @@ pub const EOWNERDEAD = 96; // Previous owner died |
| 858 | 858 | |
| 859 | 859 | pub const ELAST = 96; // Must be equal largest errno |
| 860 | 860 | |
| 861 | pub const MINSIGSTKSZ = switch (builtin.arch) { | |
| 861 | pub const MINSIGSTKSZ = switch (builtin.cpu.arch) { | |
| 862 | 862 | .i386, .x86_64 => 2048, |
| 863 | 863 | .arm, .aarch64 => 4096, |
| 864 | 864 | else => @compileError("MINSIGSTKSZ not defined for this architecture"), |
lib/std/os/bits/netbsd.zig+1-1| ... | ... | @@ -841,7 +841,7 @@ pub const ucontext_t = extern struct { |
| 841 | 841 | stack: stack_t, |
| 842 | 842 | mcontext: mcontext_t, |
| 843 | 843 | __pad: [ |
| 844 | switch (builtin.arch) { | |
| 844 | switch (builtin.cpu.arch) { | |
| 845 | 845 | .i386 => 4, |
| 846 | 846 | .mips, .mipsel, .mips64, .mips64el => 14, |
| 847 | 847 | .arm, .armeb, .thumb, .thumbeb => 1, |
lib/std/os/linux/bpf/kern.zig+1-1| ... | ... | @@ -5,7 +5,7 @@ |
| 5 | 5 | // and substantial portions of the software. |
| 6 | 6 | const std = @import("../../../std.zig"); |
| 7 | 7 | |
| 8 | const in_bpf_program = switch (std.builtin.arch) { | |
| 8 | const in_bpf_program = switch (std.builtin.cpu.arch) { | |
| 9 | 9 | .bpfel, .bpfeb => true, |
| 10 | 10 | else => false, |
| 11 | 11 | }; |
lib/std/os/linux/start_pie.zig+2-2| ... | ... | @@ -9,7 +9,7 @@ const R_ARM_RELATIVE = 23; |
| 9 | 9 | const R_AARCH64_RELATIVE = 1027; |
| 10 | 10 | const R_RISCV_RELATIVE = 3; |
| 11 | 11 | |
| 12 | const ARCH_RELATIVE_RELOC = switch (builtin.arch) { | |
| 12 | const ARCH_RELATIVE_RELOC = switch (builtin.cpu.arch) { | |
| 13 | 13 | .i386 => R_386_RELATIVE, |
| 14 | 14 | .x86_64 => R_AMD64_RELATIVE, |
| 15 | 15 | .arm => R_ARM_RELATIVE, |
| ... | ... | @@ -21,7 +21,7 @@ const ARCH_RELATIVE_RELOC = switch (builtin.arch) { |
| 21 | 21 | // Just a convoluted (but necessary) way to obtain the address of the _DYNAMIC[] |
| 22 | 22 | // vector as PC-relative so that we can use it before any relocation is applied |
| 23 | 23 | fn getDynamicSymbol() [*]elf.Dyn { |
| 24 | const addr = switch (builtin.arch) { | |
| 24 | const addr = switch (builtin.cpu.arch) { | |
| 25 | 25 | .i386 => asm volatile ( |
| 26 | 26 | \\ .weak _DYNAMIC |
| 27 | 27 | \\ .hidden _DYNAMIC |