[Development] JSON 64 bit int

Thiago Macieira thiago.macieira at intel.com
Thu Feb 12 04:08:01 CET 2015


On Thursday 12 February 2015 01:18:47 Allan Sandfeld Jensen wrote:
> On Thursday 12 February 2015, Marc Mutz wrote:
> > On Thursday 12 February 2015 00:18:28 Allan Sandfeld Jensen wrote:
> > > On Wednesday 11 February 2015, Marc Mutz wrote:
> > > > If long double was any useful (apparently it's no larger than double
> > > > on
> > > > Windows), we could use that, but as it stands, that would be
> > > > pointless.
> > > 
> > > Apropos, the usefulness of extended precision floating point happens to
> > > be that they can represent both 64bit integers and 64bit floating point.
> > 
> > ...except if it cannot. That would've actually made for a good requirement
> > for a long double type: be a superset of values representable in double
> > and long long.
> > 
> > But that's not what the standard says :(
> 
> I was referring to x87's 80bit floating point.

We don't want to use that.

However, the in-memory format for QJsonValue could store a 64-bit int.
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Development mailing list