This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH v2] __builtin_expect cleanup for iconv{,data}/*.c
- From: Roland McGrath <roland at hack dot frob dot com>
- To: Kalle Olavi Niemitalo <kon at iki dot fi>
- Cc: Florian Weimer <fweimer at redhat dot com>, libc-alpha <libc-alpha at sourceware dot org>
- Date: Wed, 10 Sep 2014 11:07:13 -0700 (PDT)
- Subject: Re: [PATCH v2] __builtin_expect cleanup for iconv{,data}/*.c
- Authentication-results: sourceware.org; auth=none
- References: <540E06B0 dot 50406 at redhat dot com> <540F501B dot 2080808 at redhat dot com> <87ha0g4adb dot fsf at Niukka dot kon dot iki dot fi> <541001AC dot 50107 at redhat dot com> <87bnqn4b25 dot fsf at Niukka dot kon dot iki dot fi>
The preferred style in glibc has always been to eschew implicit Boolean
coercions, except for the return value of strcmp/memcmp and the like (where
the most common idiomatic uses treat the value as a Boolean even though
nonzero values have further meaning).