[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kwin
Subject:    Re: float -> double
From:       Rivo Laks <rivolaks () hot ! ee>
Date:       2007-07-17 17:57:02
Message-ID: 200707172057.02192.rivolaks () hot ! ee
[Download RAW message or body]

Ühel kenal päeval (teisipäev 17 juuli 2007) kirjutas Lubos Lunak:
>  Hello,
>
>  I'd like to change all floats in the code to doubles. Floating point
> constants are double by default in C/C++ and I've run into ugly rounding
> errors because of mixing doubles and floats. Additionally, considering
> things like http://compilers.iecc.com/comparch/article/94-11-172, I think
> there's really not much reason to use floats - anybody disagrees?

OpenGL uses floats internally, so I'm not sure if it's a good idea.
At least leave all OpenGL stuff (e.g. vertex coordinates, texcoords, etc) to 
be floats.

Rivo
_______________________________________________
Kwin mailing list
Kwin@kde.org
https://mail.kde.org/mailman/listinfo/kwin

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic