POV-Ray : Newsgroups : povray.programming : unnecessary int to float to int conversion : Re: unnecessary int to float to int conversion Server Time
8 Jul 2024 19:34:01 EDT (-0400)
  Re: unnecessary int to float to int conversion  
From: Thorsten Froehlich
Date: 27 Jan 2003 12:48:09
Message: <3e3570d9@news.povray.org>
In article <o5na3v0s4oa527db5bp2229mqkaolse3p4@4ax.com> , ABX 
<abx### [at] abxartpl>  wrote:

> In files bbox.cpp and bsphere.cpp there is unnecessary conversion from int to
> float for multiplication value by 1.5 and then it is converted back for
> assignement to the same int variable. I'm talking about:

IIRC this code is in the sorting part of bounding and not speed critical.
Whenever possible readability should be given preference for non-critical
code.

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.