POV-Ray : Newsgroups : povray.general : Suggestion : Re: Suggestion Server Time
11 Aug 2024 03:29:33 EDT (-0400)
  Re: Suggestion  
From: Nieminen Juha
Date: 11 Oct 1999 05:58:38
Message: <3801b4ce@news.povray.org>
John M. Dlugosz <joh### [at] dlugoszcom> wrote:
: You're assuming that a float-to-int conversion is slow.

  That depends on what you consider slow and how much can the compiler
optimize.
  An optimal conversion would take less than 10 clock ticks which is very fast
(about as fast or even faster than a division).
  However some compilers make quite poor code. They set the settings of the
FPU each time a conversion is performed and this takes lots of time.
  The worst thing would be doing the conversion without the FPU.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

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