diff options
| author | nathanw <nathanw@NetBSD.org> | 2003-04-18 21:32:32 +0000 |
|---|---|---|
| committer | nathanw <nathanw@NetBSD.org> | 2003-04-18 21:32:32 +0000 |
| commit | 66fc73c7eb04b97aca89a871f33585b2eb65faed (patch) | |
| tree | ff3dafb23b250eca509208b81a14aa177f69e2ce /lib/libpthread | |
| parent | 63deb1bd73ba50f0e25ad6bc9f1439db58220e06 (diff) | |
Use a __predict_true() in the definition of pthread__assert().
Diffstat (limited to 'lib/libpthread')
| -rw-r--r-- | lib/libpthread/pthread_int.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpthread/pthread_int.h b/lib/libpthread/pthread_int.h index df9b829a4f2..832c77d0c97 100644 --- a/lib/libpthread/pthread_int.h +++ b/lib/libpthread/pthread_int.h @@ -1,4 +1,4 @@ -/* $NetBSD: pthread_int.h,v 1.9 2003/02/26 22:02:48 thorpej Exp $ */ +/* $NetBSD: pthread_int.h,v 1.10 2003/04/18 21:32:32 nathanw Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -340,7 +340,7 @@ void pthread__sigcontext_to_ucontext(const struct pthread__sigcontext *, #define pthread__self() (pthread__id(pthread__sp())) #define pthread__assert(e) \ - ((e) ? __static_cast(void,0) : \ + (__predict_true((e)) ? __static_cast(void,0) : \ pthread__assertfunc(__FILE__, __LINE__, __func__, #e)) |
