aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/generic
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2004-09-28 01:58:03 +0000
committerRoland McGrath <roland@gnu.org>2004-09-28 01:58:03 +0000
commitf26e84d344497de9960ea4eb52ccb16979440923 (patch)
treec6eab2754367199653b782a5bf729c19ed384011 /sysdeps/generic
parent357420c512f4c4d1a73e5ce2b680fcc59c8c468b (diff)
downloadglibc-f26e84d344497de9960ea4eb52ccb16979440923.zip
glibc-f26e84d344497de9960ea4eb52ccb16979440923.tar.gz
glibc-f26e84d344497de9960ea4eb52ccb16979440923.tar.bz2
2004-09-27 Roland McGrath <roland@redhat.com>
* sysdeps/generic/bits/waitstatus.h (__WIFSIGNALED): Simplify bit twiddling in last change.
Diffstat (limited to 'sysdeps/generic')
-rw-r--r--sysdeps/generic/bits/waitstatus.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/generic/bits/waitstatus.h b/sysdeps/generic/bits/waitstatus.h
index 98da418..699c224 100644
--- a/sysdeps/generic/bits/waitstatus.h
+++ b/sysdeps/generic/bits/waitstatus.h
@@ -39,7 +39,7 @@
/* Nonzero if STATUS indicates termination by a signal. */
#define __WIFSIGNALED(status) \
- (((signed char) ((((((status) + 1) & 0xffff) - 1) & 0x7f) + 1) >> 1) > 0)
+ (((signed char) (((status) & 0x7f) + 1) >> 1) > 0)
/* Nonzero if STATUS indicates the child is stopped. */
#define __WIFSTOPPED(status) (((status) & 0xff) == 0x7f)