This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: PowerPC: gettimeofday optimization by using IFUNC
- From: Richard Henderson <rth at twiddle dot net>
- To: Adhemerval Zanella <azanella at linux dot vnet dot ibm dot com>
- Cc: "Ryan S. Arnold" <ryan dot arnold at gmail dot com>, libc-alpha <libc-alpha at sourceware dot org>
- Date: Tue, 05 Mar 2013 07:06:12 -0800
- Subject: Re: PowerPC: gettimeofday optimization by using IFUNC
- References: <5127C775.1050804@linux.vnet.ibm.com> <512E5E33.8080105@linux.vnet.ibm.com> <CAAKybw8LSDeX5U+jhXcMGZ5N3hUti9ZKAOSWXtf47DT8AqHk1Q@mail.gmail.com> <5135E373.7090606@linux.vnet.ibm.com>
On 03/05/2013 04:22 AM, Adhemerval Zanella wrote:
> +/* Macro to return vdso_xxx value on IFUNC implementations.
> + On PPC64 the returned value is actually an OPD entry. */
> +#if defined(__PPC64__) || defined(__powerpc64__)
> +#define PTR_IFUNC_RET(value) &value
> +#else
> +#define PTR_IFUNC_RET(value) value
> +#endif
> +
We are talking about function symbols in C right? These two expressions are
identical due to function pointer decomposition.
r~