This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 3/8] i386, x86: Use libc_ifunc macro for time, gettimeofday.


On 07/04/2016 03:45 PM, Stefan Liebler wrote:
I wonder if it possible to avoid some of the preprocessor magic by
introducing a separate x86_64 file.
Do you mean moving x86/gettimeofday.c to x86_64/gettimeofday.c
and get rid of #include <sysdeps/unix/sysv/linux/x86/gettimeofday.c>?

More like keeping the generic part in x86/gettimeofday.c, and overrides in i386/gettimeofday.c and x86_64/gettimeofday.c. I was just wondering if that would be simpler.

I just don't like all these convoluted preprocessor hacks.

Florian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]