Re: [PATCH v2] powerpc/math-emu: Update macros from gmp-6.1.2

2018-11-20 Thread Segher Boessenkool
On Tue, Nov 20, 2018 at 10:45:19AM -0800, Nick Desaulniers wrote: > On Tue, Nov 20, 2018 at 10:20 AM Segher Boessenkool > wrote: > > > Segher, which tree contains the One True Upstream for longlong.h? > > > > You should probably get your updates from the same place as was used to > > get the file

Re: [PATCH v2] powerpc/math-emu: Update macros from gmp-6.1.2

2018-11-20 Thread Segher Boessenkool
On Tue, Nov 20, 2018 at 09:45:33AM +1030, Joel Stanley wrote: > On Tue, 20 Nov 2018 at 05:24, Nick Desaulniers > wrote: > > > > > > The only functional change I noticed was this in udiv_qrnnd. > > > > > > __r1 = (n1) % __d1; > > > __q1 = (n1) / __d1; > > > > > > Becomes this: > > > > > >

Re: [PATCH v2] powerpc/math-emu: Update macros from gmp-6.1.2

2018-11-19 Thread Joel Stanley
On Tue, 20 Nov 2018 at 05:24, Nick Desaulniers wrote: > > > > The only functional change I noticed was this in udiv_qrnnd. > > > > __r1 = (n1) % __d1; > > __q1 = (n1) / __d1; > > > > Becomes this: > > > > __q1 = (n1) / __d1; > > __r1 = (n1) - __q1 * __d1; > > > > This is

[PATCH v2] powerpc/math-emu: Update macros from gmp-6.1.2

2018-11-13 Thread Joel Stanley
The add_ss, sub_ddmmss, umul_ppmm and udiv_qrnnd macros originate from GMP's longlong.h. This was found when compiling with clang: arch/powerpc/math-emu/fnmsub.c:46:2: error: invalid use of a cast in a inline asm context requiring an l-value: remove the cast or build with