> From: Jeremie Courreges-Anglas <[email protected]>
> Date: Fri, 19 Jan 2018 15:28:20 +0100
>
> On Fri, Jan 19 2018, Mark Kettenis <[email protected]> wrote:
> > I thought I had built a snap with armv7, but apparently I didn't. Or
> > at least I didn't since I made changes to the whole symbol mess.
> > Anyway, the issue is that when building ramdisk code the difference
> > between GCC-style inline and ISO-style inline rears its ugly head
> > again. The solution is to switch to using "static inline".
> >
> > ok?
>
> ok jca@
Sorry, committed it before seeing your mail.
> Probably not an issue, but maybe estimateDiv64To32, estimateSqrt32 and
> countLeadingZeros32 should be marked __inline as well.
Maybe. This code won't be used on armv7 anymore in the future though
once we switch to hardfloat.
> > Index: lib/libc/softfloat/softfloat-macros.h
> > ===================================================================
> > RCS file: /cvs/src/lib/libc/softfloat/softfloat-macros.h,v
> > retrieving revision 1.1
> > diff -u -p -r1.1 softfloat-macros.h
> > --- lib/libc/softfloat/softfloat-macros.h 6 Nov 2006 15:11:37 -0000
> > 1.1
> > +++ lib/libc/softfloat/softfloat-macros.h 19 Jan 2018 13:25:13 -0000
> > @@ -39,7 +39,7 @@ result will be either 0 or 1, depending
> > The result is stored in the location pointed to by `zPtr'.
> >
> > -------------------------------------------------------------------------------
> > */
> > -__inline void shift32RightJamming( bits32 a, int16 count, bits32 *zPtr )
> > +static __inline void shift32RightJamming( bits32 a, int16 count, bits32
> > *zPtr )
> > {
> > bits32 z;
> >
> > @@ -65,7 +65,7 @@ than 64, the result will be 0. The resu
> > which are stored at the locations pointed to by `z0Ptr' and `z1Ptr'.
> >
> > -------------------------------------------------------------------------------
> > */
> > -__inline void
> > +static __inline void
> > shift64Right(
> > bits32 a0, bits32 a1, int16 count, bits32 *z0Ptr, bits32 *z1Ptr )
> > {
> > @@ -101,7 +101,7 @@ nonzero. The result is broken into two
> > the locations pointed to by `z0Ptr' and `z1Ptr'.
> >
> > -------------------------------------------------------------------------------
> > */
> > -__inline void
> > +static __inline void
> > shift64RightJamming(
> > bits32 a0, bits32 a1, int16 count, bits32 *z0Ptr, bits32 *z1Ptr )
> > {
> > @@ -153,7 +153,7 @@ corrupted as described above, and is ret
> > `z2Ptr'.)
> >
> > -------------------------------------------------------------------------------
> > */
> > -__inline void
> > +static __inline void
> > shift64ExtraRightJamming(
> > bits32 a0,
> > bits32 a1,
> > @@ -212,7 +212,7 @@ of `count' must be less than 32. The re
> > pieces which are stored at the locations pointed to by `z0Ptr' and `z1Ptr'.
> >
> > -------------------------------------------------------------------------------
> > */
> > -__inline void
> > +static __inline void
> > shortShift64Left(
> > bits32 a0, bits32 a1, int16 count, bits32 *z0Ptr, bits32 *z1Ptr )
> > {
> > @@ -232,7 +232,7 @@ The value of `count' must be less than 3
> > `z1Ptr', and `z2Ptr'.
> >
> > -------------------------------------------------------------------------------
> > */
> > -__inline void
> > +static __inline void
> > shortShift96Left(
> > bits32 a0,
> > bits32 a1,
> > @@ -268,7 +268,7 @@ any carry out is lost. The result is br
> > are stored at the locations pointed to by `z0Ptr' and `z1Ptr'.
> >
> > -------------------------------------------------------------------------------
> > */
> > -__inline void
> > +static __inline void
> > add64(
> > bits32 a0, bits32 a1, bits32 b0, bits32 b1, bits32 *z0Ptr, bits32
> > *z1Ptr )
> > {
> > @@ -289,7 +289,7 @@ modulo 2^96, so any carry out is lost.
> > `z1Ptr', and `z2Ptr'.
> >
> > -------------------------------------------------------------------------------
> > */
> > -__inline void
> > +static __inline void
> > add96(
> > bits32 a0,
> > bits32 a1,
> > @@ -328,7 +328,7 @@ Subtracts the 64-bit value formed by con
> > `z1Ptr'.
> >
> > -------------------------------------------------------------------------------
> > */
> > -__inline void
> > +static __inline void
> > sub64(
> > bits32 a0, bits32 a1, bits32 b0, bits32 b1, bits32 *z0Ptr, bits32
> > *z1Ptr )
> > {
> > @@ -347,7 +347,7 @@ into three 32-bit pieces which are store
> > `z0Ptr', `z1Ptr', and `z2Ptr'.
> >
> > -------------------------------------------------------------------------------
> > */
> > -__inline void
> > +static __inline void
> > sub96(
> > bits32 a0,
> > bits32 a1,
> > @@ -384,7 +384,8 @@ into two 32-bit pieces which are stored
> > `z0Ptr' and `z1Ptr'.
> >
> > -------------------------------------------------------------------------------
> > */
> > -__inline void mul32To64( bits32 a, bits32 b, bits32 *z0Ptr, bits32 *z1Ptr )
> > +static __inline void
> > + mul32To64( bits32 a, bits32 b, bits32 *z0Ptr, bits32 *z1Ptr )
> > {
> > bits16 aHigh, aLow, bHigh, bLow;
> > bits32 z0, zMiddleA, zMiddleB, z1;
> > @@ -415,7 +416,7 @@ which are stored at the locations pointe
> > `z2Ptr'.
> >
> > -------------------------------------------------------------------------------
> > */
> > -__inline void
> > +static __inline void
> > mul64By32To96(
> > bits32 a0,
> > bits32 a1,
> > @@ -444,7 +445,7 @@ product. The product is broken into fou
> > the locations pointed to by `z0Ptr', `z1Ptr', `z2Ptr', and `z3Ptr'.
> >
> > -------------------------------------------------------------------------------
> > */
> > -__inline void
> > +static __inline void
> > mul64To128(
> > bits32 a0,
> > bits32 a1,
> > @@ -597,7 +598,7 @@ equal to the 64-bit value formed by conc
> > returns 0.
> >
> > -------------------------------------------------------------------------------
> > */
> > -__inline flag eq64( bits32 a0, bits32 a1, bits32 b0, bits32 b1 )
> > +static __inline flag eq64( bits32 a0, bits32 a1, bits32 b0, bits32 b1 )
> > {
> >
> > return ( a0 == b0 ) && ( a1 == b1 );
> > @@ -611,7 +612,7 @@ than or equal to the 64-bit value formed
> > Otherwise, returns 0.
> >
> > -------------------------------------------------------------------------------
> > */
> > -__inline flag le64( bits32 a0, bits32 a1, bits32 b0, bits32 b1 )
> > +static __inline flag le64( bits32 a0, bits32 a1, bits32 b0, bits32 b1 )
> > {
> >
> > return ( a0 < b0 ) || ( ( a0 == b0 ) && ( a1 <= b1 ) );
> > @@ -625,7 +626,7 @@ than the 64-bit value formed by concaten
> > returns 0.
> >
> > -------------------------------------------------------------------------------
> > */
> > -__inline flag lt64( bits32 a0, bits32 a1, bits32 b0, bits32 b1 )
> > +static __inline flag lt64( bits32 a0, bits32 a1, bits32 b0, bits32 b1 )
> > {
> >
> > return ( a0 < b0 ) || ( ( a0 == b0 ) && ( a1 < b1 ) );
> > @@ -639,7 +640,7 @@ equal to the 64-bit value formed by conc
> > returns 0.
> >
> > -------------------------------------------------------------------------------
> > */
> > -__inline flag ne64( bits32 a0, bits32 a1, bits32 b0, bits32 b1 )
> > +static __inline flag ne64( bits32 a0, bits32 a1, bits32 b0, bits32 b1 )
> > {
> >
> > return ( a0 != b0 ) || ( a1 != b1 );
> >
>
> --
> jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE
>