mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
Merge 0e1c5c9c94 into 9082b004b6
This commit is contained in:
commit
4a8b6f7f9a
1 changed files with 5 additions and 2 deletions
|
|
@ -3677,10 +3677,13 @@ pub const W = struct {
|
|||
return TERMSIG(s) == 0;
|
||||
}
|
||||
pub fn IFSTOPPED(s: u32) bool {
|
||||
return @as(u16, @truncate(((s & 0xffff) *% 0x10001) >> 8)) > 0x7f00;
|
||||
return ((s & 0xff) == 0x7f);
|
||||
}
|
||||
pub fn IFSIGNALED(s: u32) bool {
|
||||
return (s & 0xffff) -% 1 < 0xff;
|
||||
return (@as(i8, @bitCast(@as(u8, @intCast((s & 0x7f) + 1)))) >> 1) > 0;
|
||||
}
|
||||
pub fn IFCONTINUED(s: u32) bool {
|
||||
return s == 0xffff;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue