This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH 5/5] Remove const attribute on get_log2
- From: Andreas Schwab <schwab at suse dot de>
- To: Florian Weimer <fweimer at redhat dot com>
- Cc: Peter Collingbourne <pcc at google dot com>, Richard Henderson <rth at twiddle dot net>, libc-alpha at sourceware dot org
- Date: Wed, 15 May 2013 09:50:47 +0200
- Subject: Re: [PATCH 5/5] Remove const attribute on get_log2
- References: <1368459372-2415-1-git-send-email-pcc at google dot com> <1368459372-2415-6-git-send-email-pcc at google dot com> <519114FF dot 9030501 at twiddle dot net> <CAMn1gO5AM73ZhN7rO6UnFPG9R4fmW34uhsqmAZb-E175JUBAbg at mail dot gmail dot com> <51933CEE dot 3060901 at redhat dot com>
Florian Weimer <fweimer@redhat.com> writes:
> I think that at one point, it was fully acceptable to label functions
> which perform memoization as "const".
I think that's what pure is for.
Andreas.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."