POV-Ray : Newsgroups : povray.unofficial.patches : Noisy thoughts : Re: Noisy thoughts Server Time
2 Sep 2024 04:19:19 EDT (-0400)
  Re: Noisy thoughts  
From: Warp
Date: 27 Sep 2000 07:14:25
Message: <39d1d67f@news.povray.org>

: 	I guess it's because it requires computing three modulus on doubles
: which is very slow (a division + a floor + a difference)*3

  Why not just:

if(val>1) val=1;
else if(val<0) val=0;

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;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.