Mitchell N Charity <[EMAIL PROTECTED]> wrote:
> to
>         if (value == vali && (0 != vali || ...something...))

> perl 5.9.0 devotes several configuration arguments to finding a
> floating point classifier (fpclass or similar).  And 100+ lines of
> perl.h to using them.  Defines quite a few macros including
> Perl_fp_class_nzero(x).    But I don't immediately see where they
> are being used...?  Perhaps there is an easier way?

I've looked now for this "something" above. Libc does provide a macro
C<signbit(x)> which does the right thing.

config/gen/platform/generic/math.h has now a new macro Parrot_is_nzero,
works for __GNUC__.

Other compilers/platforms needs still work.

> Something for the todo list.

I added in your test, so ...

> Mitchell

leo

Reply via email to