multiarch: Prepare for x86_64+arm64 universal binaries in macOS 11

2020-07-25 Thread Bruno Haible
Apple announced a migration to the arm64 architecture for new Macs. Therefore it is to be expected that there will be multi-arch ("universal") binaries in the time of transition. Like there were during the PowerPC -> x86 transition ca. 13 years ago. 2020-07-25 Bruno Haible multiarch:

Re: Some small autoconf macro improvements

2020-07-25 Thread Bruno Haible
This patch is similar. But it needs a trick in order to suppress the normal output from an AC_CHECK_FUNC invocation. 2020-07-25 Bruno Haible sigprocmask: Small autoconf macro improvement. * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Make it possible for the user to

Some small autoconf macro improvements

2020-07-25 Thread Bruno Haible
This patch makes more consistent use of AC_CACHE_CHECK. 2020-07-25 Bruno Haible Small autoconf macro improvements. * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Make it possible for the user to override the value of gl_cv_func_working_mktime. * m4/multiarch.m4

doc: update for more recent versions of NetBSD

2020-07-25 Thread Bruno Haible
The Gnulib documentation regarding NetBSD is out-of-date as well. I'm doing this update: 2020-07-25 Bruno Haible doc: Update for NetBSD 7.1, 8.0, 9.0. * doc/*/*.texi: Update. * m4/exp2l.m4: Update comments. * m4/expl.m4: Likewise. * m4/ilogb.m4:

Re: Optimize three-valued comparison between integers

2020-07-25 Thread Bruno Haible
Florian Weimer wrote: > On s390x, all three variants use conditional > branches, but the first one is the shortest. On s390x in 64-bit mode (at least with gcc-4.9), and for argument types that are smaller than 64 bits, it is possible to avoid the conditional branches by coding a 63-bit shift: