On Sun, Jul 16, 2006 at 12:49:27PM +0100, Ron Blaschke wrote:
On Win32 the implementation is simple because the IEEE recommended
functions _finite and _isnan are supported. I'm thinking about adding a
test for these functions and use them. But what should happen if they
are not there?
nan
On Wed, Jul 26, 2006 at 01:21:11PM -0700, Bill Coffman wrote:
That being said, you can optimize by looking at the bits. Wikipedia
explains IEEE-754 http://en.wikipedia.org/wiki/IEEE_754
First, you have to be aware if the machine is big or little-endian, second,
Beware. It's legal for the
Bill Coffman wrote:
There is no platform independent way to produce NaN or Inf, so IMHO,
you
did it the only way it can be done.
That being said, you can optimize by looking at the bits. Wikipedia
explains IEEE-754 http://en.wikipedia.org/wiki/IEEE_754
Many thanks for your thoughts, Bill.
I'm looking into this issue and would like to ask for some advice.
I have added the following platform dependent functions.
int Parrot_math_isnan(double)
int Parrot_math_finite(double)
On Win32 the implementation is simple because the IEEE recommended
functions _finite and _isnan are supported.
On 7/26/06, Ron Blaschke [EMAIL PROTECTED] wrote:
I'm looking into this issue and would like to ask for some advice.
I have added the following platform dependent functions.
int Parrot_math_isnan(double)
int Parrot_math_finite(double)
On Win32 the implementation is simple because the IEEE
I'm looking into this issue and would like to ask for some advice.
I have added the following platform dependent functions.
int Parrot_math_isnan(double)
int Parrot_math_finite(double)
On Win32 the implementation is simple because the IEEE recommended
functions _finite and _isnan are supported.
# New Ticket Created by Ron Blaschke
# Please include the string: [perl #38887]
# in the subject line of all future correspondence about this issue.
# URL: https://rt.perl.org/rt3/Ticket/Display.html?id=38887
.sub main
# produce INFINITY (is there a constant for that?)
set N0, 0.0