RFD: Adding an op that checks for Inf, -Inf, NaN

Vasily Chekalkin bacek at bacek.com
Tue Dec 6 10:12:26 UTC 2011


Why don't put into src/dynops/math.ops?

-- 
Bacek

On Tue, Dec 6, 2011 at 9:09 PM, Moritz Lenz <moritz at faui2k3.org> wrote:
> Hi all,
>
> for some operations in Rakudo it is important for us to check if a num value
> is one of Inf/-Inf/NaN.
>
> I'd like to add an op to parrot that does just that, here is my humble
> attempt:
>
> http://moritz.faui2k3.org/tmp/is_inf_or_nan.patch
>
> (then running 'make bootstrap-ops')
>
> but it segfaults in this step:
>
> ./parrot pbc_to_exe.pbc pbc_to_exe.pbc
>
> Any idea what's wrong? Or is there already a way to do that check which I
> don't yet know about?
>
> Cheers,
> Moritz
> _______________________________________________
> http://lists.parrot.org/mailman/listinfo/parrot-dev


More information about the parrot-dev mailing list