PowerPC: gettimeofday optimization by using IFUNC
Richard Henderson
rth@twiddle.net
Tue Mar 5 15:06:00 GMT 2013
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~
More information about the Libc-alpha
mailing list