> ptrdiff_t (*entry)(struct tlsdesc *on_rax);
> +#ifndef __LP64__
> + int pad1;
> +#endif
> void *arg;
> +#ifndef __LP64__
> + int pad2;
> +#endif
I wonder if it might not be cleaner to use:
union
{
ptrdiff_t (*entry) (struct tlsdesc *on_rax);
uint64_t entry_slot;
};
union
{
void *arg;
uint64_t arg_slot;
};
Thanks,
Roland