aboutsummaryrefslogtreecommitdiff
path: root/assert/assert.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-08-15 17:55:25 +0000
committerUlrich Drepper <drepper@redhat.com>2003-08-15 17:55:25 +0000
commit20d9b98f8a33c85b855e4aa5366acadd979de4d4 (patch)
treec7a30e961c7bb48d9788e6cf1d84b7f004ac6c6f /assert/assert.h
parentd57a3f0e0219dec6406f3477fe2eee21054c7e9c (diff)
downloadglibc-20d9b98f8a33c85b855e4aa5366acadd979de4d4.tar
glibc-20d9b98f8a33c85b855e4aa5366acadd979de4d4.tar.gz
glibc-20d9b98f8a33c85b855e4aa5366acadd979de4d4.tar.bz2
glibc-20d9b98f8a33c85b855e4aa5366acadd979de4d4.zip
Update.
2003-08-15 Jakub Jelinek <jakub@redhat.com> * assert/assert.h (assert_perror): Use __builtin_expect for gcc >= 3.0, not for !gcc or gcc < 3.0.
Diffstat (limited to 'assert/assert.h')
-rw-r--r--assert/assert.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/assert/assert.h b/assert/assert.h
index b511d116d9..7458e15de2 100644
--- a/assert/assert.h
+++ b/assert/assert.h
@@ -102,12 +102,12 @@ __END_DECLS
# ifdef __USE_GNU
# if __GNUC_PREREQ (3, 0)
# define assert_perror(errnum) \
- (__ASSERT_VOID_CAST (!(errnum) ? 0 : \
+ (__ASSERT_VOID_CAST (__builtin_expect (!(errnum), 1) ? 0 : \
(__assert_perror_fail ((errnum), __FILE__, __LINE__, \
__ASSERT_FUNCTION), 0)))
# else
# define assert_perror(errnum) \
- (__ASSERT_VOID_CAST (__builtin_expect (!(errnum), 1) ? 0 : \
+ (__ASSERT_VOID_CAST (!(errnum) ? 0 : \
(__assert_perror_fail ((errnum), __FILE__, __LINE__, \
__ASSERT_FUNCTION), 0)))
# endif