Re: Test suite failure for gettext's gnulib on ARMv7HL

2020-07-31 Thread Bruno Haible
[Removing bug-gettext from CC.] Bastien Nocera wrote: > Gettext 0.20.2's gnulib copy has its test suite failing on Fedora > rawhide on ARMv7HL. The current release is gettext 0.21. And its gnulib tests fail in the same way [1]. On the other hand, on an Ubuntu 14.04.6 (armhf) system, gettext 0.21

Re: 'fdl' vs. 'fdl-1.3': difference and/or redundant?

2020-07-31 Thread Bruno Haible
Bernhard Voelker wrote: > > This cannot be applied to gnulib. It would need to be applied upstream > > (maybe > > by Karl?). > > I don't understand. > Upstream does not have the other URL in the text, and it seems that it never > had: >http://www.gnu.org/licenses/fdl-1.1.html >http://www

Re: 'fdl' vs. 'fdl-1.3': difference and/or redundant?

2020-07-31 Thread Bernhard Voelker
On 2020-07-31 01:38, Bruno Haible wrote: > Bernhard Voelker wrote: >> okay, that means the URL bug should get fixed, right? >> Patch attached. > > This cannot be applied to gnulib. It would need to be applied upstream (maybe > by Karl?). I don't understand. Upstream does not have the other URL in

Re: Optimize three-valued comparison between integers

2020-07-31 Thread Bruno Haible
Paul Eggert wrote: > On 7/23/20 3:15 PM, Bruno Haible wrote: > > + AH_VERBATIM([micro_optimizations], > > +[/* _GL_CMP (n1, n2) performs a three-valued comparison on n1 vs. n2. > > + It returns > > + 1 if n1 > n2 > > + 0 if n1 == n2 > > + -1 if n1 < n2 > > While looking into using

Re: Optimize three-valued comparison between integers

2020-07-31 Thread Bruno Haible
Florian Weimer wrote: > int sign4 (long n1, long n2) > { > return (char) ((n1 > n2) - (n1 < n2)); > } > > It's one instruction shorter on x86-64 than sign3, but it's worse on > other architectures. Yes. In particular with floating-point numbers (and GCC 5), when I compare int sign3 (double n1