Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  nodelist  faq  login

Sometimes love ain't nothing but a misunderstanding between two fools.

tech / alt.astronomy / Re: Win32: 0.0 / 0.0 = -NAN ? Win64: 0.0 / 0.0 = -1, #IND ?

o Re: Win32: 0.0 / 0.0 = -NAN ? Win64: 0.0 / 0.0 = -1, #IND ?R Kym Horsell

Subject: Re: Win32: 0.0 / 0.0 = -NAN ? Win64: 0.0 / 0.0 = -1, #IND ?
From: R Kym Horsell
Newsgroups: alt.astronomy
Date: Mon, 2 May 2022 02:48 UTC
References: 1 2
From: (R Kym Horsell)
Newsgroups: alt.astronomy
Subject: Re: Win32: 0.0 / 0.0 = -NAN ? Win64: 0.0 / 0.0 = -1, #IND ?
Date: Mon, 2 May 2022 02:48:19 -0000 (UTC)
Message-ID: <t4ngph$tss$>
References: <> <>
Injection-Info:; logging-data="30620"; posting-host=""; mail-complaints-to="";
User-Agent: tin/1.8.3-20070201 ("Scotasay") (UNIX) (OpenBSD/4.7 (i386))
X-Notice: Filtered by postfilter v. 0.9.2
View all headers
Skybuck Flying <> wrote:
I discovered another dangerous one while trying to compute overlap of interval (basically ranges) and/or trying to clip/cap line segments:

0 * +infinity = -NAN

This happens as the ray is on the edge of a boundary/box... cause tMinX will become -NAN.

Leading to weird situations depending on how the code was written, either the wrong point will be taken or it will not clip at all.


If you are using someone else's compiled code then you have to pray
they were merciful.
There was an hacker's rule of thumb in numerical s/w -- about 2/3 of
the code deals with overflow and underflow.
One proposed solution was to abandon regular FP numbers and use a kind
of number that had a bigger range using interated logarithms.
(I.e. the exponent doesnt represent a binary exponent but the number of
times the original number was put through log2(x)).
But -- hard to believe :) -- the idea didnt catch on and the IEEE won!

Sometimes it can also be a matter of changing your "x86" hardware from
AMD to intel or vice-versa. What with pipelines and gpus not being
very well standardised some wintox exe "works" on one kind of HW and
randomly gives garbage answers on another kind.

rocksolid light 0.7.2