[Development] Proposing reversal of the Math3D qreal->float change

Thiago Macieira thiago.macieira at intel.com
Wed Sep 12 11:24:44 CEST 2012


On quarta-feira, 12 de setembro de 2012 07.10.52, lars.knoll at nokia.com wrote:
> Only minuses I can see are
> (c1) the names of QXxxF classes which are double and not float based
> (c2) possibly slower execution on ARM
> (c3) Somewhat higher memory consumption on ARM
> 
> (c1) is not easily fixed. But (c2) seems to be less of an issue these days.
> At least for the  Cortex A9 ARM claims very good double precision support.
> Older CPUs also have some support through VFPv2/3. (c3) should also become
> less and less of an issue moving forward.
> 
> So to bring this up again: How about turning qreal into a typedef for double
> on all platforms and remove the mess this way? Whereever we need (or want
> to use) floats, let's use them explicitly.

Please note that this is an orthogonal decision to the problem I posted.

The Math3D classes are no longer using qreal now, they're using float directly. 
That's what's causing the source- and behaviour-incompatibility.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
     Intel Sweden AB - Registration Number: 556189-6027
     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120912/f403c07f/attachment.sig>


More information about the Development mailing list