POV-Ray : Newsgroups : povray.binaries.images : Divide by negative zero : Re: Divide by negative zero Server Time
28 Apr 2024 18:18:46 EDT (-0400)
  Re: Divide by negative zero  
From: Jim Holsenback
Date: 3 Nov 2018 06:43:20
Message: <5bdd7bc8$1@news.povray.org>
On 11/1/18 7:06 PM, dick balaska wrote:
> On 10/26/18 2:02 AM, clipka wrote:
>> - BUT -
>>
>> ...
>>
>> POV-Ray for Linux is usually compiled with `-ffast-math`.
>> ...
>> So if you want to be sure that you're not dividing by negative zero,
>> either (a) explicitly test if the divisor is equal to zero in your scene
>> code (this is reliable because POV-Ray's equality operator is
>> implemented to use an error margin), or (b) re-compile POV-Ray without
>> `-ffast-math`.
> 
> Most humbly, I would like to point out that the Debian POV-Ray 3.7.0.x
> package does not use -ffast-math.  So, "usually" might be a bit strong.

i've been using various flavors of opensuse for over 10 years now and 
have never had to do anything /special/ during build process. just 
simply configure and make has always worked just fine for me... 
fast-math, march and even boost have /never/ been an issue for me. i've 
always thought that rolling your own is way better than using one of the 
pre-built distributions... /not/ an expert just personal observations


Post a reply to this message

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