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: PowerPC floating point little-endian [14 of 15]


On Wed, Jul 10, 2013 at 09:52:56AM +0200, Andreas Schwab wrote:
> Alan Modra <amodra@gmail.com> writes:
> 
> > diff --git a/sysdeps/powerpc/powerpc64/fpu/s_roundf.S b/sysdeps/powerpc/powerpc64/fpu/s_roundf.S
> > index 980a77b..4f2c851 100644
> > --- a/sysdeps/powerpc/powerpc64/fpu/s_roundf.S
> > +++ b/sysdeps/powerpc/powerpc64/fpu/s_roundf.S
> > @@ -19,10 +19,12 @@
> >  #include <sysdep.h>
> >  
> >  	.section	".toc","aw"
> > +	.p2align 3
> >  .LC0:	/* 2**23 */
> > -	.tc FD_4b000000_0[TC],0x4b00000000000000
> > +	.long 0x4b000000
> >  .LC1:	/* 0.5 */
> > -	.tc FD_3f000000_0[TC],0x3f00000000000000
> > +	.long 0x3f000000
> > +
> 
> Missing second word?

Deliberate.  Two 32-bit float constants stored in a 64-bit word.
Previously they used two 64-bit words.

-- 
Alan Modra
Australia Development Lab, IBM


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